Skip to content

Commit

Permalink
Switch to serial GC by default (#671)
Browse files Browse the repository at this point in the history
Serial GC seems to work much better for the working set FRC has
  • Loading branch information
ThadHouse authored Aug 29, 2023
1 parent 9797265 commit 7da8212
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class FRCJavaArtifact extends DebuggableJavaArtifact {

private final RoboRIO roboRIO;

private GarbageCollectorType gcType = GarbageCollectorType.G1;
private GarbageCollectorType gcType = GarbageCollectorType.Serial;

private String javaCommand = "/usr/local/frc/JRE/bin/java";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,14 @@
public enum GarbageCollectorType {
CMS("-XX:+UseConcMarkSweepGC"),
G1("-XX:+UseG1GC", "-XX:MaxGCPauseMillis=1", "-XX:GCTimeRatio=1"),
G1_LongPause("-XX:+UseG1GC", "-XX:MaxGCPauseMillis=5", "-XX:GCTimeRatio=1"),
G1_Base("-XX:+UseG1GC"),
Serial("-XX:+UseSerialGC"),
Parallel("-XX:+UseParallelGC"),
Serial_PauseGoal("-XX:+UseSerialGC", "-XX:MaxGCPauseMillis=5"),
Parallel_PauseGoal("-XX:+UseParallelGC", "-XX:MaxGCPauseMillis=5"),
Other();

private final List<String> gcArguments;

public List<String> getGcArguments() {
Expand Down

0 comments on commit 7da8212

Please sign in to comment.