src/hotspot/share/jfr/leakprofiler/leakProfiler.cpp
changeset 52925 9c18c9d839d3
parent 50673 e7da80712449
child 55571 49102ba8cf14
--- a/src/hotspot/share/jfr/leakprofiler/leakProfiler.cpp	Mon Dec 10 17:34:49 2018 +0300
+++ b/src/hotspot/share/jfr/leakprofiler/leakProfiler.cpp	Mon Dec 10 15:47:44 2018 +0100
@@ -47,6 +47,11 @@
     return false;
   }
 
+  if (UseShenandoahGC) {
+    log_warning(jfr)("LeakProfiler is currently not supported in combination with Shenandoah GC");
+    return false;
+  }
+
   if (_object_sampler != NULL) {
     // already started
     return true;