-
Notifications
You must be signed in to change notification settings - Fork 37
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
Exception when attempting to generate heap classes concurrently #33
Comments
@moore-ryan we have fixed some concurrency bugs in Java-Runtime-Compiler. Can you reproduce with the latest code? |
@JerryShea Thank you for the response. |
Quick response ;) Thanks @moore-ryan I thought we were using Java-Runtime-Compiler (which is thread-safe) but we were not. I've made a PR to fix but will wait for review in case there was a reason not to have that dependency. |
Excellent, thank you for the quick update! |
Released in Chronicle-Values-2.24ea1, BOM-2.24ea86 |
Encountered on jdk11.0.8, using chronicle-values:2.22ea1 (but also reproducible on chronicle-values:2.20.80)
When attempting to fetch multiple heap classes for the first time concurrently, it is possible to hit an exception that seems to be caused by a threading issue when defining / loading classes.
There seem to be two different exceptions that are thrown, depending on the order things get executed in:
First type of exception:
Second type of exception:
Test code (using chronicle-values:2.22ea1):
The layout of the value interfaces aren't really important, so long as they need to be compiled
Value1 interface:
Value2 interface:
The text was updated successfully, but these errors were encountered: