| Index: src/snapshot/serialize.cc
|
| diff --git a/src/snapshot/serialize.cc b/src/snapshot/serialize.cc
|
| index 89d37be1df467879f6703f553bd863abab391229..67152ebcdda4ab0b8c06f27f66f3cc0dd987875e 100644
|
| --- a/src/snapshot/serialize.cc
|
| +++ b/src/snapshot/serialize.cc
|
| @@ -601,6 +601,8 @@ MaybeHandle<Object> Deserializer::DeserializePartial(
|
| VisitPointer(&root);
|
| DeserializeDeferredObjects();
|
|
|
| + isolate->heap()->RegisterReservationsForBlackAllocation(reservations_);
|
| +
|
| // There's no code deserialized here. If this assert fires then that's
|
| // changed and logging should be added to notify the profiler et al of the
|
| // new code, which also has to be flushed from instruction cache.
|
| @@ -627,6 +629,7 @@ MaybeHandle<SharedFunctionInfo> Deserializer::DeserializeCode(
|
| result = Handle<SharedFunctionInfo>(SharedFunctionInfo::cast(root));
|
| }
|
| CommitPostProcessedObjects(isolate);
|
| + isolate->heap()->RegisterReservationsForBlackAllocation(reservations_);
|
| return scope.CloseAndEscape(result);
|
| }
|
| }
|
|
|