-
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
DynamicProxySupport is not thread safe #1927
Comments
Thank you for reporting, I will merge the fix soon. You are right |
Fixed by a5aa34b. |
@cstancu, a general question about GraalVM releases - does this fix (that has landed in master branch) end up in 19.3.x releases or should one specifically request them to be backported to 19.3.x, given that master branch appears to be 20.x? |
Yes, looks like we will need this one in 19.3.1 if we want to be able to support JDK 11 with GraalVM in Quarkus. Thanks for considering it. |
Hopefully we'll be able to catch things like this sooner in the near future when we introduce Quarkus |
Yes, this fix will be included in 19.3.1. In general, we automatically backport critical fixes like this one, but you can request a backport if you need it. |
Workaround for oracle/graal#1927 Should be possible to remove this in 19.3.1 This is a different problem to the previous one that this fix worked around, however because we were using this setting we only ran into the thread safety problem after it was removed.
Workaround for oracle/graal#1927 Should be possible to remove this in 19.3.1 This is a different problem to the previous one that this fix worked around, however because we were using this setting we only ran into the thread safety problem after it was removed.
Hey @cstancu do you do backports at the last minute or as the upstream fix happen? Georgios (Quarkus) is working on a CI job for Quarkus master on GraalVM master for info. |
We usually try to do the backports as the fixes happen. @gilles-duboscq when is the 19.3.1 release branch planned? |
Gilles told me, trying to make it happen in a week or two. |
Workaround for oracle/graal#1927 Should be possible to remove this in 19.3.1 This is a different problem to the previous one that this fix worked around, however because we were using this setting we only ran into the thread safety problem after it was removed.
Workaround for oracle/graal#1927 Should be possible to remove this in 19.3.1 This is a different problem to the previous one that this fix worked around, however because we were using this setting we only ran into the thread safety problem after it was removed.
I have seen a random failure in the Quarkus test suite where a JDK proxy was not created. It appears that DynamicProxySupport.addProxyClass is called from multiple threads, but is not thread safe. I think com.oracle.svm.reflect.proxy.DynamicProxySupport#proxyCache needs to be changed to a ConcurrentHashMap.
The text was updated successfully, but these errors were encountered: