[jdk20] RFR: 8287699: jdk/jfr/api/consumer/TestRecordingFileWrite.java fails with exception: java.lang.Exception: Found event that should not be there.
Erik Gahlin
egahlin at openjdk.org
Thu Dec 15 15:05:07 UTC 2022
On Thu, 15 Dec 2022 14:48:17 GMT, Markus Grönlund <mgronlun at openjdk.org> wrote:
> Greetings,
>
> the problem here addressed will close a gap in the constant pool data for threads, which up to now has been written on thread start only, but not on thread end. This leads to a race where a thread can write an event in a new chunk and terminate before the JFR recorder thread has had a chance to iterate it. By also writing constant pool data for threads on thread end, we close this gap.
>
> Testing: jdk_jfr, stress testing
>
> Thanks
> Markus
Marked as reviewed by egahlin (Reviewer).
-------------
PR: https://git.openjdk.org/jdk20/pull/41
More information about the hotspot-jfr-dev
mailing list