[heap] Add a flag to disable remembered set verification.
BUG=chromium:720606 Review-Url: https://codereview.chromium.org/2871173006 Cr-Commit-Position: refs/heads/master@{#45252}
This commit is contained in:
parent
332353556e
commit
e4b3f93eab
@ -700,6 +700,8 @@ DEFINE_BOOL(trace_detached_contexts, false,
|
||||
DEFINE_IMPLICATION(trace_detached_contexts, track_detached_contexts)
|
||||
#ifdef VERIFY_HEAP
|
||||
DEFINE_BOOL(verify_heap, false, "verify heap pointers before and after GC")
|
||||
DEFINE_BOOL(verify_heap_skip_remembered_set, false,
|
||||
"disable remembered set verification")
|
||||
#endif
|
||||
DEFINE_BOOL(move_object_start, true, "enable moving of object starts")
|
||||
DEFINE_BOOL(memory_reducer, true, "use memory reducer")
|
||||
|
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user