8205338: ZGC: LeakProfiler not yet supported

Reviewed-by: egahlin, eosterlund
This commit is contained in:
Per Lidén 2018-06-20 11:33:42 +02:00
parent aefa5d6fbe
commit d8cc020fd6

@ -42,6 +42,11 @@ ObjectSampler* LeakProfiler::_object_sampler = NULL;
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;