-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
[GR-44282] BeforeAnalysisAccess#registerMethodOverrideReachabilityHandler not getting invoked as expected in GraalVM 22.2 #5194
Comments
Could you please retry with a recent dev build? 22.3 will be released this month. |
Hi @fniephaus apologies for the delay and thanks for the suggestion! Using the recent dev build of 22.3 still seems to result in the same issue:
Here is a full stacktrace that we're seeing: https://gist.github.com/mpeddada1/9989f8b8fc600d398ceb982380cf45b3 |
What if you set |
Assigning to @cstancu since the workaround is to use |
Thanks again @fniephaus! That is indeed an interesting idea. Unfortunately, running
For documentation purposes, I've also updated the reproducer with these troubleshooting results. |
Thanks a lot for the reproducer. I can confirm this still happens in a current |
Describe the issue
Upgrading from GraalVM 22.1 to GraalVM 22.2 is resulting in changed behavior in reachability handlers.
Steps to reproduce the issue
Reproducer: https://github.com/mpeddada1/graalvm22.2-reachability
As seen in the reproducer, the method,
BeforeAnalysisAccess.registerMethodOverrideReachabilityHandler()
in a customFeature
implementation , doesn't get invoked.when using graalvm 22.2. This leads to classes not being registered for reflection and results in runtime errors like this:However, that same method is invoked when using graal-sdk 22.1.0 and runs successfully.
Describe GraalVM and your environment:
More details
Concurrent reachability handlers were enabled by default starting with 22.2.0 so I wonder if we're hitting some sort of a race condition?
Workaround: Adding the
-H:-RunReachabilityHandlersConcurrently
parameter results in a successful build.The text was updated successfully, but these errors were encountered: