changeset 51307:e7da80712449

8205338: ZGC: LeakProfiler not yet supported Reviewed-by: egahlin, eosterlund
author pliden
date Wed, 20 Jun 2018 11:33:42 +0200
parents 35a87577b461
children 9ab948f612a8
files src/hotspot/share/jfr/leakprofiler/leakProfiler.cpp
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;