src/hotspot/share/aot/aotCodeHeap.cpp
changeset 51341 09cc8813ae51
parent 51206 14b870bda24f
child 51444 3e5d28e6de32
--- a/src/hotspot/share/aot/aotCodeHeap.cpp	Wed Aug 08 15:34:32 2018 -0700
+++ b/src/hotspot/share/aot/aotCodeHeap.cpp	Wed Aug 08 18:38:34 2018 -0700
@@ -714,7 +714,7 @@
 void AOTCodeHeap::sweep_method(AOTCompiledMethod *aot) {
   int indexes[] = {aot->method_index()};
   sweep_dependent_methods(indexes, 1);
-  vmassert(aot->method()->code() != aot && aot->method()->aot_code() == NULL, "method still active");
+  vmassert(aot->method()->code() != aot TIERED_ONLY( && aot->method()->aot_code() == NULL), "method still active");
 }