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

Unified Diff: src/heap/spaces.cc

Issue 2871173006: [heap] Add a flag to disable remembered set verification. (Closed)
Patch Set: Created 3 years, 7 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 | « src/flag-definitions.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/spaces.cc
diff --git a/src/heap/spaces.cc b/src/heap/spaces.cc
index 8f75e14b788cac4e31459caed1cc58243f0280fd..71e1b60be978ec3d23a7d4081a46b626f586fa16 100644
--- a/src/heap/spaces.cc
+++ b/src/heap/spaces.cc
@@ -1569,7 +1569,9 @@ void PagedSpace::Verify(ObjectVisitor* visitor) {
// The object itself should look OK.
object->ObjectVerify();
- heap()->VerifyRememberedSetFor(object);
+ if (!FLAG_verify_heap_skip_remembered_set) {
+ heap()->VerifyRememberedSetFor(object);
+ }
// All the interior pointers should be contained in the heap.
int size = object->Size();
@@ -3323,7 +3325,9 @@ void LargeObjectSpace::Verify() {
// The object itself should look OK.
object->ObjectVerify();
- heap()->VerifyRememberedSetFor(object);
+ if (!FLAG_verify_heap_skip_remembered_set) {
+ heap()->VerifyRememberedSetFor(object);
+ }
// Byte arrays and strings don't have interior pointers.
if (object->IsAbstractCode()) {
« no previous file with comments | « src/flag-definitions.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698