mirror of
https://github.com/VSCodium/vscodium.git
synced 2026-04-23 11:30:14 +10:00
refactor: patches (#2797)
This commit is contained in:
17
patches/linux/client/00-system-support-16k-page-size.patch
Normal file
17
patches/linux/client/00-system-support-16k-page-size.patch
Normal file
@@ -0,0 +1,17 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user