Closed moore-ryan closed 2 years ago
@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.
I am still able to reproduce the issue with both chronicle-values:2.23.3
and with chronicle-values:2.24ea0
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: