Index: src/serialize.cc |
diff --git a/src/serialize.cc b/src/serialize.cc |
index 118961be3292accf5fc94938752372c825e43580..b5cb478cdfde65a3663bd9757d26fb291bb0c615 100644 |
--- a/src/serialize.cc |
+++ b/src/serialize.cc |
@@ -850,6 +850,7 @@ void Deserializer::ReadObject(int space_number, |
int size = source_->GetInt() << kObjectAlignmentBits; |
Address address = Allocate(space_number, size); |
HeapObject* obj = HeapObject::FromAddress(address); |
+ isolate_->heap()->OnAllocationEvent(obj, size); |
*write_back = obj; |
Object** current = reinterpret_cast<Object**>(address); |
Object** limit = current + (size >> kPointerSizeLog2); |