Commit 462d57ae authored by mtrofin's avatar mtrofin Committed by Commit bot

[wasm] Fix possible gc-ing of wasm code objects

If incremental GC starts before imports linking, and sees a wasm
function, it won't revisit that after the imports that function are linked.
As a result, the import code objects may be GC-ed. This change
addresses this issue.

BUG=

Review-Url: https://codereview.chromium.org/2113183002
Cr-Commit-Position: refs/heads/master@{#37507}
parent 3ca49d9a
......@@ -372,7 +372,8 @@ bool LinkFunction(Handle<Code> unlinked,
Handle<Code> new_target = code_targets[index];
if (target != *new_target) {
it.rinfo()->set_target_address(new_target->instruction_start(),
SKIP_WRITE_BARRIER, SKIP_ICACHE_FLUSH);
UPDATE_WRITE_BARRIER,
SKIP_ICACHE_FLUSH);
modified = true;
}
}
......
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