[jdk20] RFR: 8287699: jdk/jfr/api/consumer/TestRecordingFileWrite.java fails with exception: java.lang.Exception: Found event that should not be there.
Markus Grönlund
mgronlun at openjdk.org
Thu Dec 15 14:56:46 UTC 2022
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
-------------
Commit messages:
- 8287699
Changes: https://git.openjdk.org/jdk20/pull/41/files
Webrev: https://webrevs.openjdk.org/?repo=jdk20&pr=41&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8287699
Stats: 4 lines in 2 files changed: 3 ins; 1 del; 0 mod
Patch: https://git.openjdk.org/jdk20/pull/41.diff
Fetch: git fetch https://git.openjdk.org/jdk20 pull/41/head:pull/41
PR: https://git.openjdk.org/jdk20/pull/41
More information about the hotspot-jfr-dev
mailing list