src/hotspot/share/jfr/leakprofiler/leakProfiler.cpp
changeset 52925 9c18c9d839d3
parent 50673 e7da80712449
child 55571 49102ba8cf14
equal deleted inserted replaced
52924:420ff459906f 52925:9c18c9d839d3
    42 
    42 
    43 static volatile jbyte suspended = 0;
    43 static volatile jbyte suspended = 0;
    44 bool LeakProfiler::start(jint sample_count) {
    44 bool LeakProfiler::start(jint sample_count) {
    45   if (UseZGC) {
    45   if (UseZGC) {
    46     log_warning(jfr)("LeakProfiler is currently not supported in combination with ZGC");
    46     log_warning(jfr)("LeakProfiler is currently not supported in combination with ZGC");
       
    47     return false;
       
    48   }
       
    49 
       
    50   if (UseShenandoahGC) {
       
    51     log_warning(jfr)("LeakProfiler is currently not supported in combination with Shenandoah GC");
    47     return false;
    52     return false;
    48   }
    53   }
    49 
    54 
    50   if (_object_sampler != NULL) {
    55   if (_object_sampler != NULL) {
    51     // already started
    56     // already started