Skip to content

Commit

Permalink
OWS-638: update allowed jvm args
Browse files Browse the repository at this point in the history
  • Loading branch information
janakmulani committed Nov 20, 2024
1 parent e8f02c4 commit 10076f1
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions core/src/main/java/net/adoptopenjdk/icedteaweb/jvm/JvmUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,11 @@ private static String[] getValidVMArguments() {
"-XX:+ScavengeBeforeFullGC",
"-XX:-ScavengeBeforeFullGC",
"-XX:+UseParallelScavenge",
"-XX:-UseParallelScavenge"
"-XX:-UseParallelScavenge",
"-XX:+UseParNewGC",
"-XX:+PrintFlagsFinal",
"-XX:+PrintCommandLineFlags",
"-XX:+PrintGCDateStamps"
};
}

Expand All @@ -197,6 +201,7 @@ private static String[] getValidVMArguments() {
* <p>
* Based on
* https://docs.oracle.com/javase/8/docs/technotes/guides/javaws/developersguide/syntax.html#secure-property
* https://docs.oracle.com/en/java/javase/21/docs/specs/man/java.html
*/
private static String[] getValidStartingVMArguments() {
return new String[]{
Expand All @@ -217,6 +222,7 @@ private static String[] getValidStartingVMArguments() {
"-XX:MinHeapFreeRatio", /* heap free percentage (default 40) */
"-XX:UseSerialGC", /* use serial garbage collection */
"-XX:-UseSerialGC",
"-XX:+UseSerialGC",
"-XX:ThreadStackSize", /* thread stack size (in KB) */
"-XX:MaxInlineSize", /* set max num of bytecodes to inline */
"-XX:ReservedCodeCacheSize", /* Reserved code cache size (bytes) */
Expand All @@ -239,7 +245,10 @@ private static String[] getValidStartingVMArguments() {
"-XX:GCTimeLimit",
"-XX:GCHeapFreeLimit",
"-XX:+UseParNewGC",
"-XX:+CMSParallelRemarkEnabled"
"-XX:+CMSParallelRemarkEnabled",
"-XX:+UseZGC",
"-XX:+ZGenerational",
"-XX:HeapDumpPath"
};
}

Expand Down Expand Up @@ -286,6 +295,7 @@ private static String[] getValidSecureProperties() {
"http.maxRedirects",
"http.auth.digest.validateProxy",
"http.auth.digest.validateServer",
"user.timezone",
// https://news.kynosarges.org/2019/03/24/swing-high-dpi-properties/
"sun.java2d.uiScale.enabled",
"sun.java2d.win.uiScaleX",
Expand Down

0 comments on commit 10076f1

Please sign in to comment.