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

Unified Diff: src/heap/mark-compact.h

Issue 2477823003: [heap] Make LiveObjectIterator concurrency safe (Closed)
Patch Set: Fix condition Created 4 years, 1 month 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/heap/mark-compact-inl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/mark-compact.h
diff --git a/src/heap/mark-compact.h b/src/heap/mark-compact.h
index 7e94ee54cfc70eeb22fdfc375764bdaf04c88c54..44e90d5a4b20ec7b3e14ce4b6e175fa7e49766b7 100644
--- a/src/heap/mark-compact.h
+++ b/src/heap/mark-compact.h
@@ -321,6 +321,8 @@ class LiveObjectIterator BASE_EMBEDDED {
HeapObject* Next();
private:
+ inline Heap* heap() { return chunk_->heap(); }
+
MemoryChunk* chunk_;
MarkBitCellIterator it_;
Address cell_base_;
« no previous file with comments | « no previous file | src/heap/mark-compact-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698