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

Unified Diff: src/heap/store-buffer.h

Issue 985453003: Eliminate invalid pointers in store buffer after marking. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 9 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
Index: src/heap/store-buffer.h
diff --git a/src/heap/store-buffer.h b/src/heap/store-buffer.h
index 30ef18f54f08f9c924f206dfde212e6c55c77e1f..f353b1df2c95d9258fbe230f26ba647c1f1100c1 100644
--- a/src/heap/store-buffer.h
+++ b/src/heap/store-buffer.h
@@ -105,6 +105,13 @@ class StoreBuffer {
void Filter(int flag);
+ // Eliminates all stale store buffer entries from the store buffer, i.e.,
+ // slots that are not part of live objects anymore. This method must be
+ // called after marking, when the whole transitive closure is known and
+ // must be called before sweeping when mark bits are still intact.
+ void ClearInvalidStoreBufferEntries();
+ void VerifyValidStoreBufferEntries();
+
private:
Heap* heap_;

Powered by Google App Engine
This is Rietveld 408576698