Files
node/deps/v8
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
..
2021-02-25 00:14:47 +01:00
2023-03-31 14:15:23 +00:00
2019-10-07 03:19:23 -04:00
2019-08-01 12:53:56 +02:00
2023-03-31 14:15:23 +00:00
2023-04-17 06:55:34 +00:00
2023-04-17 06:55:34 +00:00
2022-10-11 07:24:33 +02:00
2023-05-10 14:36:42 +02:00
2022-10-11 07:24:33 +02:00
2023-03-31 14:15:23 +00:00
2023-04-17 06:55:34 +00:00
2022-04-12 22:08:39 +02:00
2019-03-14 18:49:21 +01:00
2017-10-18 17:01:41 -07:00
2021-10-12 08:07:50 +02:00
2018-12-06 15:23:33 +01:00
2023-03-31 14:15:23 +00:00
2022-10-11 07:24:33 +02:00
2022-10-11 07:24:33 +02:00
2023-03-31 14:15:23 +00:00
2022-11-19 09:11:32 +00:00
2023-03-31 14:15:23 +00:00
2023-03-31 14:15:23 +00:00
2023-04-11 19:19:17 +00:00
2022-11-19 09:11:32 +00:00
2023-03-31 14:15:23 +00:00
2021-02-11 19:09:18 +01:00
2022-10-11 07:24:33 +02:00
2020-07-13 14:41:41 +02:00
2022-10-11 07:24:33 +02:00
2021-10-12 08:07:50 +02:00
2021-10-12 08:07:50 +02:00
2022-11-27 17:27:13 +00:00
2023-03-31 14:15:23 +00:00
2023-03-31 14:15:23 +00:00
2019-06-01 09:55:12 -04:00
2021-11-21 16:04:41 +01:00
2023-03-31 14:15:23 +00:00
2023-03-31 14:15:23 +00:00
2022-10-11 07:24:33 +02:00

V8 JavaScript Engine

V8 is Google's open source JavaScript engine.

V8 implements ECMAScript as specified in ECMA-262.

V8 is written in C++ and is used in Google Chrome, the open source browser from Google.

V8 can run standalone, or can be embedded into any C++ application.

V8 Project page: https://v8.dev/docs

Getting the Code

Checkout depot tools, and run

    fetch v8

This will checkout V8 into the directory v8 and fetch all of its dependencies. To stay up to date, run

    git pull origin
    gclient sync

For fetching all branches, add the following into your remote configuration in .git/config:

    fetch = +refs/branch-heads/*:refs/remotes/branch-heads/*
    fetch = +refs/tags/*:refs/tags/*

Contributing

Please follow the instructions mentioned at v8.dev/docs/contribute.