mirror of
https://abf.rosa.ru/djam/java-17-openjdk.git
synced 2025-04-11 10:14:11 +00:00
24 lines
759 B
Diff
24 lines
759 B
Diff
--- a/src/hotspot/share/jfr/periodic/sampling/jfrThreadSampler.cpp 2024-01-15 20:35:13.409882846 +0300
|
|
+++ b/src/hotspot/share/jfr/periodic/sampling/jfrThreadSampler.cpp 2024-01-15 20:37:08.895609642 +0300
|
|
@@ -638,14 +638,18 @@
|
|
if (_instance == NULL && 0 == period) {
|
|
return;
|
|
}
|
|
- instance().set_sampling_interval(true, period);
|
|
+ if (_instance) {
|
|
+ instance().set_sampling_interval(true, period);
|
|
+ }
|
|
}
|
|
|
|
void JfrThreadSampling::set_native_sample_interval(size_t period) {
|
|
if (_instance == NULL && 0 == period) {
|
|
return;
|
|
}
|
|
- instance().set_sampling_interval(false, period);
|
|
+ if (_instance) {
|
|
+ instance().set_sampling_interval(false, period);
|
|
+ }
|
|
}
|
|
|
|
void JfrThreadSampling::on_javathread_suspend(JavaThread* thread) {
|
|
|