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 13:05:45 UTC 2022
Greetings,
the problem here addressed will to 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/jdk/pull/11692/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=11692&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/jdk/pull/11692.diff
Fetch: git fetch https://git.openjdk.org/jdk pull/11692/head:pull/11692
PR: https://git.openjdk.org/jdk/pull/11692
More information about the hotspot-jfr-dev
mailing list