Skip to content

Conversation

bnoordhuis
Copy link
Collaborator

The patch is nodejs/node#55274

This is a partial cherry-pick of upstream commit v8/v8@8953e49478.

Shows up in debug builds because of a buggy sanity check when computing
relationships between command line flags.

Example of the hang:

    #include "v8.h"
    #include "libplatform/libplatform.h"
    int main(void) {
      // works: v8::V8::SetFlagsFromString("--gc-global --noincremental-marking");
      v8::V8::SetFlagsFromString("--gc-global");
      v8::V8::SetFlagsFromString("--noincremental-marking");
      v8::V8::InitializePlatform(v8::platform::NewDefaultPlatform().release());
      v8::V8::Initialize(); // hangs in ComputeFlagListHash when defined(DEBUG)
    }
Words cannot describe the rage one feels when you wait 30 minutes for
a debug build to compile, only to find out it's been stripped of actual
debug symbols.
@bnoordhuis bnoordhuis merged commit fde85c5 into rubyjs:node-22 Oct 7, 2024
24 checks passed
@bnoordhuis bnoordhuis deleted the fixes branch October 7, 2024 19:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant