Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 97547bc

Browse filesBrowse files
kapouerRafaelGSS
authored andcommitted
src: lock-free init_process_flags
Fix #45152 PR-URL: #45221 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com> Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de>
1 parent 738144c commit 97547bc
Copy full SHA for 97547bc

File tree

Expand file treeCollapse file tree

2 files changed

+3
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

2 files changed

+3
-1
lines changed
Open diff view settings
Collapse file

‎src/node.cc‎

Copy file name to clipboardExpand all lines: src/node.cc
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ void ResetSignalHandlers() {
429429
#endif // __POSIX__
430430
}
431431

432-
static std::atomic<uint64_t> init_process_flags = 0;
432+
static std::atomic<uint32_t> init_process_flags = 0;
433433

434434
static void PlatformInit(ProcessInitializationFlags::Flags flags) {
435435
// init_process_flags is accessed in ResetStdio(),
Collapse file

‎src/node.h‎

Copy file name to clipboardExpand all lines: src/node.h
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,8 @@ class MultiIsolatePlatform;
228228
class InitializationResultImpl;
229229

230230
namespace ProcessFlags {
231+
// TODO(addaleax): Switch to uint32_t to match std::atomic<uint32_t>
232+
// init_process_flags in node.cc
231233
enum Flags : uint64_t {
232234
kNoFlags = 0,
233235
// Enable stdio inheritance, which is disabled by default.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.