node/deps/v8
Michaël Zasso b16f6da153
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: 5f025d1ca2
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-12 11:57:21 +02:00
..
.github
base/trace_event/common deps: update V8 to 11.3.244.4 2023-03-31 14:15:23 +00:00
bazel deps: update V8 to 11.3.244.4 2023-03-31 14:15:23 +00:00
build_overrides deps: update V8 to 11.3.244.4 2023-03-31 14:15:23 +00:00
custom_deps
docs
gni deps: update V8 to 11.3.244.4 2023-03-31 14:15:23 +00:00
include deps: patch V8 to 11.3.244.8 2023-05-02 09:33:55 +02:00
infra deps: patch V8 to 11.3.244.8 2023-05-02 09:33:55 +02:00
samples
src deps: V8: cherry-pick 5f025d1ca2ca 2023-05-12 11:57:21 +02:00
test deps: patch V8 to support compilation on win-arm64 2023-03-31 14:15:29 +00:00
testing
third_party deps: update V8 to 11.3.244.4 2023-03-31 14:15:23 +00:00
tools deps: patch V8 to 11.3.244.8 2023-05-02 09:33:55 +02:00
.bazelrc
.clang-format
.clang-tidy
.editorconfig
.flake8
.git-blame-ignore-revs deps: update V8 to 11.3.244.4 2023-03-31 14:15:23 +00:00
.gitattributes
.gitignore deps: update V8 to 11.3.244.4 2023-03-31 14:15:23 +00:00
.gn
.mailmap
.style.yapf deps: update V8 to 11.3.244.4 2023-03-31 14:15:23 +00:00
.vpython3 deps: update V8 to 10.8.168.20 2022-11-19 09:11:32 +00:00
.ycm_extra_conf.py deps: update V8 to 10.9.194.4 2022-11-27 17:27:13 +00:00
AUTHORS deps: update V8 to 11.3.244.4 2023-03-31 14:15:23 +00:00
BUILD.bazel deps: update V8 to 11.3.244.4 2023-03-31 14:15:23 +00:00
BUILD.gn deps: V8: cherry-pick 8e10685ff918 2023-05-02 09:33:49 +02:00
CODE_OF_CONDUCT.md
codereview.settings
COMMON_OWNERS deps: update V8 to 10.8.168.20 2022-11-19 09:11:32 +00:00
DEPS deps: update V8 to 11.3.244.4 2023-03-31 14:15:23 +00:00
DIR_METADATA
ENG_REVIEW_OWNERS deps: update V8 to 10.8.168.20 2022-11-19 09:11:32 +00:00
INFRA_OWNERS
INTL_OWNERS
LICENSE
LICENSE.fdlibm
LICENSE.strongtalk
LICENSE.v8
LOONG_OWNERS
MIPS_OWNERS
OWNERS deps: update V8 to 10.9.194.4 2022-11-27 17:27:13 +00:00
PPC_OWNERS deps: update V8 to 11.3.244.4 2023-03-31 14:15:23 +00:00
PRESUBMIT.py deps: update V8 to 11.3.244.4 2023-03-31 14:15:23 +00:00
README.md
RISCV_OWNERS
S390_OWNERS deps: update V8 to 11.3.244.4 2023-03-31 14:15:23 +00:00
WATCHLISTS deps: update V8 to 11.3.244.4 2023-03-31 14:15:23 +00:00
WORKSPACE

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.