Index: test/cctest/test-heap-profiler.cc |
diff --git a/test/cctest/test-heap-profiler.cc b/test/cctest/test-heap-profiler.cc |
index 7ecaa35c2d309b6740ac5187bb2245c88ae06315..d6adfea3dd24ebe4eb3e63d1c8c5ad5ac69c3eb9 100644 |
--- a/test/cctest/test-heap-profiler.cc |
+++ b/test/cctest/test-heap-profiler.cc |
@@ -425,9 +425,11 @@ TEST(HeapEntryIdsAndGC) { |
v8::HeapProfiler::TakeSnapshot(s2_str); |
// Second snapshot has one more string, it is it's name 's2'. |
- CHECK_EQ_SNAPSHOT_OBJECT_ID( |
- snapshot1->GetMaxSnapshotJSObjectId(), |
- snapshot2->GetMaxSnapshotJSObjectId()); |
+ CHECK( |
+ snapshot1->GetMaxSnapshotJSObjectId() <= |
+ snapshot2->GetMaxSnapshotJSObjectId() && |
+ snapshot2->GetMaxSnapshotJSObjectId() <= |
+ snapshot1->GetMaxSnapshotJSObjectId() + i::HeapObjectsMap::kObjectIdStep); |
const v8::HeapGraphNode* global1 = GetGlobalObject(snapshot1); |
const v8::HeapGraphNode* global2 = GetGlobalObject(snapshot2); |