From 2de67680eeb2884816236070dc74cb7fda8f1e3d Mon Sep 17 00:00:00 2001 From: Devin Smith Date: Thu, 23 May 2024 08:49:18 -0700 Subject: [PATCH] Mitigate risks of SoftReference cache OOM (#5520) Fixes #5518 --- .../main/groovy/io.deephaven.java-toolchain-conventions.gradle | 3 +++ 1 file changed, 3 insertions(+) diff --git a/buildSrc/src/main/groovy/io.deephaven.java-toolchain-conventions.gradle b/buildSrc/src/main/groovy/io.deephaven.java-toolchain-conventions.gradle index 82c6e56268d..2a1322225bc 100644 --- a/buildSrc/src/main/groovy/io.deephaven.java-toolchain-conventions.gradle +++ b/buildSrc/src/main/groovy/io.deephaven.java-toolchain-conventions.gradle @@ -155,6 +155,9 @@ def JAVA_OPTS = parseJvmArgumentsFromProperty("deephaven.javaOpts", parseJvmArgu '-XX:+UseG1GC', '-XX:MaxGCPauseMillis=100', '-XX:+UseStringDeduplication', + // TODO(deephaven-core#5519): Remove SoftReference cache OOM mitigation + // Requires -XX:+UnlockDiagnosticVMOptions which is already included in def compilerArgs earlier + '-XX:GCLockerRetryAllocationCount=128', ])) // Utility to add jvm args to all executions, whether intellij or from a application script or gradle javaexec