• Clemens Backes's avatar
    [wasm][debug] Fix deadlock in recompilation · cfeb66d2
    Clemens Backes authored
    Triggering recompilation can reduce the number of outstanding
    recompilation functions. If it gets reduced to zero, we also need to
    trigger other callbacks waiting for recompilation to finish.
    This situation can happen if all recompiled code was already
    installed in the native module, but the compilation state was not
    updated yet via {OnFinishedUnits}.
    
    R=thibaudm@chromium.org
    
    Bug: v8:10557, chromium:1084369, v8:10359
    Change-Id: Ib80ff110776cf284632303b0b23e4c6e63426411
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2214828Reviewed-by: 's avatarThibaud Michaud <thibaudm@chromium.org>
    Commit-Queue: Clemens Backes <clemensb@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#67965}
    cfeb66d2
module-compiler.cc 118 KB