Files
node/deps
Michaël Zasso 38d261ae66 deps: V8: cherry-pick 5f025d1ca2ca
Original commit message:

    [wasm] Fix deadlock in async wrapper compilation

    If compilation is cancelled while wrapper compilation is running, the
    tasks spawned for the {AsyncCompileJSToWasmWrapperJob} will return
    immediately, but {GetMaxConcurrency} will still return a positive
    value. Hence {Join()} will spawn another task, resulting in a
    livelock.

    We could fix this by checking for cancellation in {GetMaxConcurrency},
    but that requires taking the compilation state lock.
    So this CL fixes the issue by dropping the number of outstanding
    compilation units by to (basically) zero. We can't unconditionally drop
    to zero because another thread might concurrently execute a wrapper
    compilation and still call {CompleteUnit} afterwards. Hence only drop
    outstanding units by the amount of not-yet-started units.

    R=jkummerow@chromium.org

    Bug: v8:13858
    Change-Id: I5398ef370da2e7f212ca772fd1f87f659929dd6d
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/4437531
    Commit-Queue: Clemens Backes <clemensb@chromium.org>
    Reviewed-by: Jakob Kummerow <jkummerow@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#87143}

Refs: https://github.com/v8/v8/commit/5f025d1ca2ca2fe2f6cee5b6d841907a36fd32b7
PR-URL: https://github.com/nodejs/node/pull/47610
Refs: https://github.com/nodejs/node/issues/47297
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2023-05-10 14:36:42 +02:00
..
2023-01-30 07:54:48 +00:00
2023-05-09 15:53:06 +00:00
2023-03-18 10:24:38 +01:00
2023-03-18 10:24:38 +01:00
2023-04-06 01:14:25 +00:00
2023-04-09 01:56:06 +00:00
2023-03-18 10:24:38 +01:00
2023-03-18 10:24:38 +01:00
2023-05-07 10:37:34 +00:00
2023-04-13 12:43:08 +00:00
2023-04-25 00:48:02 +00:00
2023-03-18 10:24:38 +01:00
2023-03-18 10:24:38 +01:00
2023-05-10 14:36:42 +02:00