< prev index next >
src/hotspot/share/jfr/leakprofiler/leakProfiler.cpp
Print this page
*** 40,49 ****
--- 40,54 ----
// Only to be updated during safepoint
ObjectSampler* LeakProfiler::_object_sampler = NULL;
static volatile jbyte suspended = 0;
bool LeakProfiler::start(jint sample_count) {
+ if (UseZGC) {
+ log_warning(jfr)("LeakProfiler is currently not supported in combination with ZGC");
+ return false;
+ }
+
if (_object_sampler != NULL) {
// already started
return true;
}
// Allows user to disable leak profiler on command line by setting queue size to zero.
< prev index next >