Chromium Code Reviews

Unified Diff: src/spaces.cc

Issue 325553002: --verify-predictable mode added for ensuring that GC behaves deterministically. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: src/spaces.cc
diff --git a/src/spaces.cc b/src/spaces.cc
index 7966a04728c6291e83142eeeda1acf2039c68c77..6ac40a9899be8561c6413c6221c04fea31260ec3 100644
--- a/src/spaces.cc
+++ b/src/spaces.cc
@@ -2897,6 +2897,9 @@ AllocationResult LargeObjectSpace::AllocateRaw(int object_size,
}
heap()->incremental_marking()->OldSpaceStep(object_size);
+ if (FLAG_allocations_digest) {
+ heap()->OnAllocationEvent(object, object_size);
Hannes Payer (out of office) 2014/06/09 15:23:51 The event call should be in Heap::AllocateRaw. The
Igor Sheludko 2014/06/10 08:22:54 I trigger "allocation event" each time any allocat
Hannes Payer (out of office) 2014/06/10 16:58:59 1) Please move your monitoring code into Heap:Allo
+ }
return object;
}

Powered by Google App Engine