diff --git a/test/hotspot/jtreg/runtime/Dictionary/CleanProtectionDomain.java b/test/hotspot/jtreg/runtime/Dictionary/CleanProtectionDomain.java index b7ee9bcc4e4..ff358f8554e 100644 --- a/test/hotspot/jtreg/runtime/Dictionary/CleanProtectionDomain.java +++ b/test/hotspot/jtreg/runtime/Dictionary/CleanProtectionDomain.java @@ -78,7 +78,7 @@ public class CleanProtectionDomain { if (cnt++ % 30 == 0) { System.gc(); } - removedCount = wb.resolvedMethodRemovedCount(); + removedCount = wb.protectionDomainRemovedCount(); if (removedCountOrig != removedCount) { break; }