We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 779a1c1 + a1d573a commit f8b93beCopy full SHA for f8b93be
1 file changed
runtime/vm/jfr.cpp
@@ -1134,8 +1134,6 @@ stopJFRRecording(J9JavaVM *vm)
1134
}
1135
1136
omrthread_monitor_exit(vm->jfrSamplerMutex);
1137
- omrthread_monitor_destroy(vm->jfrSamplerMutex);
1138
- vm->jfrSamplerMutex = NULL;
1139
1140
vm->jfrSamplerState = J9JFR_SAMPLER_STATE_UNINITIALIZED;
1141
@@ -1207,6 +1205,8 @@ tearDownJFR(J9JavaVM *vm)
1207
1205
J9UnregisterAsyncEvent(vm, vm->jfrThreadCPULoadAsyncKey);
1208
1206
vm->jfrThreadCPULoadAsyncKey = -1;
1209
+ omrthread_monitor_destroy(vm->jfrSamplerMutex);
+ vm->jfrSamplerMutex = NULL;
1210
1211
1212
static I_64
0 commit comments