8287699: jdk/jfr/api/consumer/TestRecordingFileWrite.java fails with exception: java.lang.Exception: Found event that should not be there.

Reviewed-by: egahlin
This commit is contained in:
Markus Grönlund 2022-12-16 10:46:37 +00:00
parent c47e64e4f3
commit 0ba4734891
2 changed files with 3 additions and 1 deletions

View File

@ -208,6 +208,9 @@ void JfrThreadLocal::on_exit(Thread* t) {
assert(t != NULL, "invariant");
JfrThreadLocal * const tl = t->jfr_thread_local();
assert(!tl->is_dead(), "invariant");
if (JfrRecorder::is_recording()) {
JfrCheckpointManager::write_checkpoint(t);
}
if (t->is_Java_thread()) {
JavaThread* const jt = JavaThread::cast(t);
send_java_thread_end_event(jt, JfrThreadLocal::jvm_thread_id(jt));

View File

@ -755,7 +755,6 @@ jdk/jfr/startupargs/TestStartName.java 8214685 windows-
jdk/jfr/startupargs/TestStartDuration.java 8214685 windows-x64
jdk/jfr/jvm/TestWaste.java 8282427 generic-all
jdk/jfr/api/consumer/recordingstream/TestOnEvent.java 8255404 linux-x64
jdk/jfr/api/consumer/TestRecordingFileWrite.java 8287699 generic-all
############################################################################