--- old/src/hotspot/share/jfr/leakprofiler/leakProfiler.cpp 2020-02-06 19:18:06.693550042 +0100 +++ new/src/hotspot/share/jfr/leakprofiler/leakProfiler.cpp 2020-02-06 19:18:06.525550057 +0100 @@ -53,6 +53,11 @@ return false; } + if (UseShenandoahGC) { + log_warning(jfr)("LeakProfiler is currently not supported in combination with Shenandoah GC"); + return false; + } + assert(!is_running(), "invariant"); assert(sample_count > 0, "invariant");