[heap][arm] Call AddCodeMemoryChunk off-thread
When compiling code off-thread in the large code space, we need to register the chunk in the isolate using AddCodeMemoryChunk. In the main thread, this is done when AllocateRaw calls NotifyOldGenerationExpansion. Bug: chromium:1269315, v8:12054 Change-Id: I46ea5c9cdcd063708292dd49aac6d39091e11ba4 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3289151 Auto-Submit: Victor Gomes <victorgomes@chromium.org> Commit-Queue: Dominik Inführ <dinfuehr@chromium.org> Reviewed-by: Dominik Inführ <dinfuehr@chromium.org> Cr-Commit-Position: refs/heads/main@{#77968}
This commit is contained in:
parent
3e40f8f091
commit
44ba2adb40
@ -186,6 +186,9 @@ AllocationResult OldLargeObjectSpace::AllocateRawBackground(
|
||||
heap()->incremental_marking()->black_allocation(),
|
||||
heap()->incremental_marking()->marking_state()->IsBlack(object));
|
||||
page->InitializationMemoryFence();
|
||||
if (identity() == CODE_LO_SPACE) {
|
||||
heap()->isolate()->AddCodeMemoryChunk(page);
|
||||
}
|
||||
return object;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user