Commit 5a35928
committed
Fix hang in V8 debug builds
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)
}1 parent 309d2ef commit 5a35928
2 files changed
+27
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
0 commit comments