Commit 08edc78b authored by hpayer's avatar hpayer Committed by Commit bot

Perform RegisterReservationsForBlackAllocation atomically with deserialization of code.

BUG=596057
LOG=n

Review URL: https://codereview.chromium.org/1818953002

Cr-Commit-Position: refs/heads/master@{#34934}
parent f1d04af5
......@@ -157,9 +157,9 @@ MaybeHandle<SharedFunctionInfo> Deserializer::DeserializeCode(
DeserializeDeferredObjects();
FlushICacheForNewCodeObjects();
result = Handle<SharedFunctionInfo>(SharedFunctionInfo::cast(root));
isolate->heap()->RegisterReservationsForBlackAllocation(reservations_);
}
CommitPostProcessedObjects(isolate);
isolate->heap()->RegisterReservationsForBlackAllocation(reservations_);
return scope.CloseAndEscape(result);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment