--- old/src/hotspot/share/jfr/leakprofiler/leakProfiler.cpp 2018-06-19 14:00:40.760515918 +0200 +++ new/src/hotspot/share/jfr/leakprofiler/leakProfiler.cpp 2018-06-19 14:00:40.480503789 +0200 @@ -42,6 +42,11 @@ 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;