From 4640e10ac082b3954d00d2b2cb7b4bc61835fe76 Mon Sep 17 00:00:00 2001 From: crschnick Date: Sun, 28 Jul 2024 19:48:33 +0000 Subject: [PATCH] Enable zgc --- build.gradle | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index d6686f729..d6ead746a 100644 --- a/build.gradle +++ b/build.gradle @@ -142,11 +142,13 @@ project.ext { "-Dio.xpipe.app.arch=$rootProject.arch", "-Dio.xpipe.app.languages=${String.join(",", languages)}", "-Dfile.encoding=UTF-8", - // Disable this for now as it requires Windows 10+ - // '-XX:+UseZGC', "-Dvisualvm.display.name=XPipe", "-Djavafx.preloader=io.xpipe.app.core.AppPreloader" ] + // Disable this for now as it requires Windows 10+ + if (!org.gradle.internal.os.OperatingSystem.current().isWindows()) { + jvmRunArgs += ['-XX:+UseZGC'] + } if (org.gradle.internal.os.OperatingSystem.current().isMacOsX()) { jvmRunArgs += ["-Dapple.awt.application.appearance=system"] }