src/hotspot/share/jfr/leakprofiler/leakProfiler.cpp
changeset 50673 e7da80712449
parent 50429 83aec1d357d4
child 52925 9c18c9d839d3
--- a/src/hotspot/share/jfr/leakprofiler/leakProfiler.cpp	Wed Jun 20 14:52:32 2018 +0530
+++ b/src/hotspot/share/jfr/leakprofiler/leakProfiler.cpp	Wed Jun 20 11:33:42 2018 +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;