RFR: 8372321: TestBackToBackSensitive fails intermittently after JDK-8365972

Matthias Baesken mbaesken at openjdk.org
Fri Jan 9 08:09:05 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

If you want , I can put the change into our CI and let it there for a few days, to check if the errors we faced are gone with the change.

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

PR Comment: https://git.openjdk.org/jdk/pull/29117#issuecomment-3727642942


More information about the hotspot-jfr-dev mailing list