RFR: 8372321: TestBackToBackSensitive fails intermittently after JDK-8365972

Markus Grönlund mgronlun at openjdk.org
Thu Jan 8 19:01:30 UTC 2026


On Thu, 8 Jan 2026 14:28:54 GMT, Erik Gahlin <egahlin at openjdk.org> wrote:

> Could I have a review of a PR that attempts to harden a test?
> 
> Sometimes, ClassLoaderStatistics events are dropped, probably due to a bug in the RecordingStream class when starting multiple recordings simultaneously. This is not a bug related to back-to-back chunks, so I decided to use an EventFileStream instead.
> 
> I also use TestClassLoader for verification purposes. Using PlatformClassLoader shouldn't be a problem, but it seems more prudent to have an actual object/class on the heap for the class loader that needs to be checked.
> 
> Testing: jdk/jdk/jfr
> 
> Thanks
> Erik

Lets try this.

-------------

Marked as reviewed by mgronlun (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/29117#pullrequestreview-3640803287


More information about the hotspot-jfr-dev mailing list