Commit ffb04e5e authored by Thibaud Michaud's avatar Thibaud Michaud Committed by Commit Bot

[wasm] Add missing CODE_SPACE_WRITE_SCOPE

R=jkummerow@chromium.org

Bug: chromium:1155319
Change-Id: Iea99b5caaee1fc2ea4a6ed846badd2f1be57ae19
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2574698Reviewed-by: 's avatarJakob Kummerow <jkummerow@chromium.org>
Commit-Queue: Thibaud Michaud <thibaudm@chromium.org>
Cr-Commit-Position: refs/heads/master@{#71620}
parent 46628795
...@@ -633,14 +633,17 @@ bool NativeModuleDeserializer::Read(Reader* reader) { ...@@ -633,14 +633,17 @@ bool NativeModuleDeserializer::Read(Reader* reader) {
// Participate to deserialization in the main thread to ensure progress even // Participate to deserialization in the main thread to ensure progress even
// if background tasks are not scheduled. // if background tasks are not scheduled.
int published = 0; int published = 0;
for (;;) { {
auto batch = reloc_queue.Pop(); CODE_SPACE_WRITE_SCOPE
if (!batch) break; for (;;) {
for (auto& unit : *batch) { auto batch = reloc_queue.Pop();
CopyAndRelocate(unit); if (!batch) break;
for (auto& unit : *batch) {
CopyAndRelocate(unit);
}
Publish(std::move(batch));
++published;
} }
Publish(std::move(batch));
++published;
} }
if (published == num_batches) { if (published == num_batches) {
......
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