Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(126)

Unified Diff: src/heap/heap.h

Issue 1419563004: Simplify IdentityMap. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/identity-map.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/heap.h
diff --git a/src/heap/heap.h b/src/heap/heap.h
index 0a298512495ff184558ffd4b3c6579d3301dcd93..b0f03e00f56cb4df6f8cb6c3f07be5c37fee0557 100644
--- a/src/heap/heap.h
+++ b/src/heap/heap.h
@@ -620,25 +620,6 @@ class Heap {
Heap* heap_;
};
- // An optional version of the above lock that can be used for some critical
- // sections on the mutator thread; only safe since the GC currently does not
- // do concurrent compaction.
- class OptionalRelocationLock {
- public:
- OptionalRelocationLock(Heap* heap, bool concurrent)
- : heap_(heap), concurrent_(concurrent) {
- if (concurrent_) heap_->relocation_mutex_.Lock();
- }
-
- ~OptionalRelocationLock() {
- if (concurrent_) heap_->relocation_mutex_.Unlock();
- }
-
- private:
- Heap* heap_;
- bool concurrent_;
- };
-
// Support for partial snapshots. After calling this we have a linear
// space to write objects in each space.
struct Chunk {
« no previous file with comments | « no previous file | src/identity-map.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698