Skip to content

Commit

Permalink
Fix Epsilon GC when CompactingOldGen defaults to true.
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-hofer committed May 3, 2024
1 parent d5c351c commit e41b210
Showing 1 changed file with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,17 +134,17 @@ public static boolean useRememberedSet() {

@Fold
public static boolean useCompactingOldGen() {
if (ConcealedOptions.CompactingOldGen.getValue()) {
if (!useRememberedSet()) {
throw UserError.abort("%s requires %s.", SubstrateOptionsParser.commandArgument(ConcealedOptions.CompactingOldGen, "+"),
SubstrateOptionsParser.commandArgument(ConcealedOptions.UseRememberedSet, "+"));
}
if (SerialAndEpsilonGCOptions.AlignedHeapChunkSize.getValue() > ObjectMoveInfo.MAX_CHUNK_SIZE) {
throw UserError.abort("%s requires %s.", SubstrateOptionsParser.commandArgument(ConcealedOptions.CompactingOldGen, "+"),
SubstrateOptionsParser.commandArgument(SerialAndEpsilonGCOptions.AlignedHeapChunkSize, "<value below or equal to " + ObjectMoveInfo.MAX_CHUNK_SIZE + ">"));
}
return true;
if (SubstrateOptions.UseEpsilonGC.getValue() || !ConcealedOptions.CompactingOldGen.getValue()) {
return false;
}
return false;
if (!useRememberedSet()) {
throw UserError.abort("%s requires %s.", SubstrateOptionsParser.commandArgument(ConcealedOptions.CompactingOldGen, "+"),
SubstrateOptionsParser.commandArgument(ConcealedOptions.UseRememberedSet, "+"));
}
if (SerialAndEpsilonGCOptions.AlignedHeapChunkSize.getValue() > ObjectMoveInfo.MAX_CHUNK_SIZE) {
throw UserError.abort("%s requires %s.", SubstrateOptionsParser.commandArgument(ConcealedOptions.CompactingOldGen, "+"),
SubstrateOptionsParser.commandArgument(SerialAndEpsilonGCOptions.AlignedHeapChunkSize, "<value below or equal to " + ObjectMoveInfo.MAX_CHUNK_SIZE + ">"));
}
return true;
}
}

0 comments on commit e41b210

Please sign in to comment.