-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[AArch64] Reflection calls from JRuby are slow on GraalVM vs. HotSpot #6600
Comments
@teshull could you please have a look into this. |
I've looked into this a bit and it seems to be a problem with the CE inliner. When I run the example with GraalVM EE, the performance is better than C2. EE:
C2 (GraalVM EE with
EE with CE inliner (
|
Use of |
More experimentation shows that this is most likely a profiling and compilation timing issue. In some cases, the relevant invokes do not seem to have a mature profile. Playing around with flags such as |
As reported by @headius (see #2666 (comment) ), GraalVM executes this JRuby snippet much slower on AArch64 than HotSpot:
I observed a slowdown of ~2x on linux-aarch64 and ~6x on darwin-aarch64 compared to HotSpot (using the same JAVA_HOME that was used to build GraalVM). I did not see any slowdown on darwin-amd64; I could not verify that on linux-amd64 would be great if someone could check this platform, so we know that this is issue is specific to AArch64.
Instructions on darwin-aarch64:
The text was updated successfully, but these errors were encountered: