Skip to content

Commit f8b93be

Browse files
authored
Merge pull request #24243 from tajila/jfr3
Remove sampler mutex in jfr shutdown
2 parents 779a1c1 + a1d573a commit f8b93be

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

runtime/vm/jfr.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1134,8 +1134,6 @@ stopJFRRecording(J9JavaVM *vm)
11341134
}
11351135
}
11361136
omrthread_monitor_exit(vm->jfrSamplerMutex);
1137-
omrthread_monitor_destroy(vm->jfrSamplerMutex);
1138-
vm->jfrSamplerMutex = NULL;
11391137
}
11401138
vm->jfrSamplerState = J9JFR_SAMPLER_STATE_UNINITIALIZED;
11411139

@@ -1207,6 +1205,8 @@ tearDownJFR(J9JavaVM *vm)
12071205
J9UnregisterAsyncEvent(vm, vm->jfrThreadCPULoadAsyncKey);
12081206
vm->jfrThreadCPULoadAsyncKey = -1;
12091207
}
1208+
omrthread_monitor_destroy(vm->jfrSamplerMutex);
1209+
vm->jfrSamplerMutex = NULL;
12101210
}
12111211

12121212
static I_64

0 commit comments

Comments
 (0)