Insufficient locking in ResteasyProviderFactory.getInstance()...? #4704
Unanswered
ThomasLorenzAGFA
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
There is some locking in the ResteasyProviderFactory.getInstance() to prevent concurrent access to the instance:
resteasy/resteasy-core-spi/src/main/java/org/jboss/resteasy/spi/ResteasyProviderFactory.java
Lines 99 to 117 in a304b9c
However it appears to be insufficient as the instance field is already set, and can be accessed by another thread without acquiring the lock, before the registerBuiltin() method is called (and has finished).
Beta Was this translation helpful? Give feedback.
All reactions