Skip to content

Commit 55cbb6c

Browse files
authored
对 Java 26 默认启用压缩对象头 (#5274)
1 parent 8aecbe8 commit 55cbb6c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

HMCLCore/src/main/java/org/jackhuang/hmcl/launch/DefaultLauncher.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ private Command generateCommandLine(Path nativeFolder) throws IOException {
243243
}
244244
}
245245

246-
if (is64bit && javaVersion == 25) {
246+
if (is64bit && (javaVersion >= 25 && javaVersion <= 26)) {
247247
res.addUnstableDefault("UseCompactObjectHeaders", true);
248248
}
249249

0 commit comments

Comments
 (0)