Skip to content

Commit 4883e42

Browse files
Little-Peonyclaude
andcommitted
chore(scripts): add comment explaining G1GC replacement for CMS
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 7e55a0a commit 4883e42

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

start.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,8 @@ startService() {
355355
exit
356356
fi
357357

358+
# G1GC is used here for JDK 8/17 compatibility. CMS flags (-XX:+UseConcMarkSweepGC etc.)
359+
# were removed in JDK 14 and cause JVM startup failure on JDK 17 (required for ARM64).
358360
nohup $JAVACMD -Xms$JVM_MS -Xmx$JVM_MX -XX:+UseG1GC -XX:+PrintGCDetails -Xloggc:./gc.log \
359361
-XX:+PrintGCDateStamps -XX:ReservedCodeCacheSize=256m -XX:+UseCodeCacheFlushing \
360362
-XX:MetaspaceSize=256m -XX:MaxMetaspaceSize=512m \

0 commit comments

Comments
 (0)