Skip heap verify on 64-bit with an app snapshot

See issue: https://github.com/dart-lang/sdk/issues/27373

R=rmacnak@google.com

Review URL: https://codereview.chromium.org/2348793004 .
This commit is contained in:
Zachary Anderson 2016-09-16 10:41:19 -07:00
parent e2b922b4c5
commit 5348efba7d

View file

@ -562,6 +562,13 @@ ObjectSet* Heap::CreateAllocatedObjectSet(
bool Heap::Verify(MarkExpectation mark_expectation) const {
// TODO(27373): Remove this test when the issue is fixed.
#if defined(ARCH_IS_64_BIT)
if ((Dart::snapshot_kind() == Snapshot::kAppNoJIT) ||
(Dart::snapshot_kind() == Snapshot::kAppWithJIT)) {
return true;
}
#endif
HeapIterationScope heap_iteration_scope;
return VerifyGC(mark_expectation);
}