-
-
Notifications
You must be signed in to change notification settings - Fork 576
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add detection for IBM Semeru Java runtime and fix x86 detection on 64 bit Windows #2428
Conversation
Signed-off-by: Fourmisain <[email protected]>
Is this only for windows? |
Yes. I have no idea how/if detection on Linux is done. I also just tested x86 and it looks like all the detection code is sort of broken for it. For comparison, registry paths for x86 and x64 on 64 bit Windows are
I guess it's not a huge deal since you generally won't use 32 bit Java on a 64 bit machine since the only advantage is lower memory consumption, but it's also limited to 4GB, so it's pretty much pointless. |
Hey, just looked into things looks like on macos ibm semeru would be installed to with linux the official RPM uses
other distros are likely going to use similar |
I just looked into the x86 thing a bit. The Gonna check it out tomorrow, the Linux/macOS detection as well if I can find the code - though I won't be able to test it. |
Oh wait, maybe that's the issue? PrismLauncher/launcher/java/JavaUtils.cpp Line 210 in 08918be
It's always using KEY_WOW64_64KEY here.
Anyway. Tomorrow. |
Signed-off-by: Fourmisain <[email protected]>
I had to quickly test it. It was indeed that. |
Signed-off-by: Fourmisain <[email protected]>
Just read the code as well, I agree that it should already work.
Added That should be it. Thanks for the help! |
One more thing you need to do is to format your code(to please the pre-commit check). |
Signed-off-by: Fourmisain <[email protected]>
Force-pushed the correct formatting. |
Successfully created backport PR for |
IBM Semeru uses OpenJ9, which is known to be quite memory efficient, making it potentially interesting for large modpacks.
The detection code is a straight forward copy of the Eclipse Adoptium detection, substituting
Eclipse Adoptium
->Semeru
,ADOPTIUM
->SEMERU
,hotspot
->openj9
Tested working with 8.0.402.0 x64 JDK and 17.0.10.0 x64 JRE. (I assume x86 should just work.)
P.S.
MSYS2's build instructions are missing
qt6-networkauth:p
in the pacboy step if someone reading wants to fix it.