JetBrains / JetBrainsRuntime

Runtime environment based on OpenJDK for running IntelliJ Platform-based products on Windows, macOS, and Linux
GNU General Public License v2.0
1.3k stars 195 forks source link

Can we get an osx-aarch64 build with Shenandoah enabled? #125

Open diocletiann opened 2 years ago

diocletiann commented 2 years ago

I've been test driving JBR17 and the Shenandoah GC works amazingly well. Unfortunately JBR17 is still too unstable for a daily driver, can we get a build of JBR11 for osx-aarch64 that has Shenandoah enabled like Windows? Thanks.

avu commented 2 years ago

Unfortunately, no. We don't have any plans at the moment to add any new features to JBR11. Our goal is to make JBR17 stable and usable for all our products. Do you mean any particular issue with JBR17?

diocletiann commented 2 years ago

Thanks for the response. This is the crash I keep getting with JBR17 and Goland EAP. I submitted it in the UI.

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x000000011fd34a08, pid=3530, tid=53535
#
# JRE version: OpenJDK Runtime Environment JBR-17.0.2+8-315.1-nomod (17.0.2+8) (build 17.0.2+8-b315.1)
# Java VM: OpenJDK 64-Bit Server VM JBR-17.0.2+8-315.1-nomod (17.0.2+8-b315.1, mixed mode, tiered, compressed oops, compressed class ptrs, shenandoah gc, bsd-aarch64)
# Problematic frame:
# J 20203 c2 sun.java2d.loops.RenderCache.get(Lsun/java2d/loops/SurfaceType;Lsun/java2d/loops/CompositeType;Lsun/java2d/loops/SurfaceType;)Ljava/lang/Object; java.desktop@17.0.2 (100 bytes) @ 0x000000011fd34a08 [0x000000011fd34880+0x0000000000000188]
#
# No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# If you would like to submit a bug report, please visit:
#   https://bugreport.java.com/bugreport/crash.jsp
#
diocletiann commented 2 years ago

Turns out JDK 17 includes Mac aarch64 support for ZGC which may be even more efficient than Shenandoah (-XX:+UseDynamicNumberOfGCThreads).