jdk-openjdk
with Generational ZGC enabled crashes #235
Labels
No Label
blocked upstream
bug
build-failure
duplicate
enhancement
help wanted
informational
invalid
invalid/corrupt package
packaging issue
priority: high
question
support
wontfix
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: ALHP/ALHP.GO#235
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
jdk-openjdk
(JDK 21) package in ALHP crashes when Generational ZGC is enabled.For example:
Have you confirmed this is only happening with the ALHP package, e.g. downgrading to official repos with
pacman -S extra/jdk-openjdk
solves this issue?Downgrading to official build works. I have confirmed that the ALHP package of all feature levels has the issue.
Does this also happen with earlier jdk/jre versions, like
jdk17-openjdk
orjdk11-openjdk
?JDK is known to have issues with optimizations. Thats why e.g. -O3 is replaced with O2 in the PKGBUILD.
I dunno how other optimizations are handled though.
I'm working with Java, but not developing on the JDK itself.
@anonfunc Earlier JDK versions don't support Generational ZGC.
Nvm, just saw that you meant Generational ZGC. So, not building 21 should suffice?
@anonfunc It would suffice. However, I have checked that just disabling LTO makes Generational ZGC work.
That's even better. I disabled LTO for
java-openjdk
. Please confirm it's actually working as soon as the rebuild is finished.It still does not work but the error is a little different:
So no-build list it is. Regrettable, but probably no way around it.
It's a pity yes.
The downside is probably not that huge though. As the Java code itself are optimized at runtime for the platform its running on. So the cpu flags are already taken advantage of.
The optimization would be good for the native part of the JVM like garbage collection, runtime compiler (hotspot) and other things. Yet I can imagine that even their they try to optimize a lot.
I compared once a -march=native local build vs vanilla adoptium build and they had the same runtime of our unit tests suite of our main business application.
I added
jdk-openjdk
to the list, should be removed with the next build-cycle.Is this still an issue?