chore: add JVM argument to improve vector operations on Java 21+ (#901)
This commit is contained in:
parent
959458abde
commit
30f0e1843e
1 changed files with 5 additions and 1 deletions
|
|
@ -64,6 +64,10 @@ pub fn java_arguments(
|
|||
|
||||
parsed.extend(performance_flags(java_major, java_arch, mem_max, &custom));
|
||||
|
||||
if java_major >= 21 {
|
||||
parsed.push("--add-modules=jdk.incubator.vector".to_string());
|
||||
}
|
||||
|
||||
parsed.push(format!("-Xmx{mem_max}M"));
|
||||
parsed.extend(custom);
|
||||
|
||||
|
|
@ -893,7 +897,7 @@ mod tests {
|
|||
let cp = classpaths(&dir, &libraries, &client, "x86", false).unwrap();
|
||||
|
||||
assert!(
|
||||
!cp.contains("asm-all"),
|
||||
!cp.contains("asm-all-4.1.jar"),
|
||||
"fabric aborts on two copies of org/objectweb/asm/ClassReader.class: {cp}"
|
||||
);
|
||||
assert!(cp.contains("asm-9.10.1.jar"), "{cp}");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue