mirror of
https://github.com/VSCodium/vscodium.git
synced 2026-04-11 16:27:18 +10:00
18 lines
706 B
Diff
18 lines
706 B
Diff
diff --git a/src/main.ts b/src/main.ts
|
|
index c132c9b..51a7290 100644
|
|
--- a/src/main.ts
|
|
+++ b/src/main.ts
|
|
@@ -524,2 +524,12 @@ function getJSFlags(cliArgs: NativeParsedArgs): string | null {
|
|
|
|
+ // Fix cppgc crash on Linux with 16KB page size.
|
|
+ // Refs https://issues.chromium.org/issues/378017037
|
|
+ // The fix from https://github.com/electron/electron/commit/6c5b2ef55e08dc0bede02384747549c1eadac0eb
|
|
+ // only affects non-renderer process.
|
|
+ // The following will ensure that the flag will be
|
|
+ // applied to the renderer process as well.
|
|
+ // TODO: Remove this once we update to
|
|
+ // Chromium >= 134.
|
|
+ jsFlags.push('--nodecommit_pooled_pages');
|
|
+
|
|
return jsFlags.length > 0 ? jsFlags.join(' ') : null;
|