Browse Source

fix: cppgc crashes on Linux with 16KiB pages (#45602)

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Shelley Vohr <[email protected]>
trop[bot] 2 months ago
parent
commit
155359e0de
1 changed files with 4 additions and 0 deletions
  1. 4 0
      shell/browser/javascript_environment.cc

+ 4 - 0
shell/browser/javascript_environment.cc

@@ -86,6 +86,10 @@ v8::Isolate* JavascriptEnvironment::Initialize(uv_loop_t* event_loop,
   auto* cmd = base::CommandLine::ForCurrentProcess();
   // --js-flags.
   std::string js_flags = "--no-freeze-flags-after-init ";
+#if defined(OS_LINUX)
+  // See https://issues.chromium.org/issues/378017037 - fixed in M134.
+  js_flags.append("--nodecommit_pooled_pages ");
+#endif
   js_flags.append(cmd->GetSwitchValueASCII(blink::switches::kJavaScriptFlags));
   v8::V8::SetFlagsFromString(js_flags.c_str(), js_flags.size());