From b0fb410e0f6d860034f74ac900dc6070e930604f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=93=E6=98=82?= Date: Wed, 18 Sep 2019 20:47:27 +0800 Subject: [PATCH] Summary: Fix debug build failure Test Plan: existing test cases Reviewed-by: shiyue Issue: https://github.com/alibaba/dragonwell8/issues/52 --- src/share/vm/classfile/classLoaderData.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/share/vm/classfile/classLoaderData.cpp b/src/share/vm/classfile/classLoaderData.cpp index f2ed60b32..99e5723e0 100644 --- a/src/share/vm/classfile/classLoaderData.cpp +++ b/src/share/vm/classfile/classLoaderData.cpp @@ -650,7 +650,9 @@ void ClassLoaderDataGraph::cld_do(CLDClosure* cl) { void ClassLoaderDataGraph::cld_unloading_do(CLDClosure* cl) { // this method is only used by jfr now, if you need to use this method in another case, // this check should be removed. +#if INCLUDE_TRACE assert(EnableJFR && FlightRecorder, "just check"); +#endif assert(SafepointSynchronize::is_at_safepoint(), "must be at safepoint!"); // Only walk the head until any clds not purged from prior unloading