Skip to content

Commit edf8bca

Browse files
committed
deps: V8: cherry-pick 70924d79f32c
Original commit message: [runtime] Fix non-conforming std::atomic_flag initialization std::atomic_flag has no constructor taking bool. Use ATOMIC_FLAG_INIT to ensure it works across different standard library implementations. Refs: #62572 Change-Id: If5ff61339560aa0b9a2219aad9e5b6f2fd2b1155 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/7874000 Reviewed-by: Clemens Backes <clemensb@chromium.org> Commit-Queue: Joyee Cheung <joyee@igalia.com> Cr-Commit-Position: refs/heads/main@{#107728} Refs: v8/v8@70924d7
1 parent a04f601 commit edf8bca

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

common.gypi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040

4141
# Reset this number to 0 on major V8 upgrades.
4242
# Increment by one for each non-official patch applied to deps/v8.
43-
'v8_embedder_string': '-node.20',
43+
'v8_embedder_string': '-node.21',
4444

4545
##### V8 defaults for Node.js #####
4646

deps/v8/src/runtime/runtime-test.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1173,7 +1173,7 @@ RUNTIME_FUNCTION(Runtime_SetAllocationTimeout) {
11731173
CONVERT_INT32_ARG_FUZZ_SAFE(timeout, 1);
11741174
isolate->heap()->set_allocation_timeout(timeout);
11751175
#else // !V8_ENABLE_ALLOCATION_TIMEOUT
1176-
static std::atomic_flag printed_warning{false};
1176+
static std::atomic_flag printed_warning = ATOMIC_FLAG_INIT;
11771177
if (!printed_warning.test_and_set()) {
11781178
base::OS::PrintError(
11791179
"Warning: %%SetAllocationTimeout has no effect in this build. Set the "

0 commit comments

Comments
 (0)