< prev index next >

test/hotspot/jtreg/runtime/HiddenClasses/TestHiddenClassUnloading.java

Print this page

        

*** 120,130 **** if (length != -1 && classBytes.length != length) { throw new IOException("Expected:" + length + ", actual: " + classBytes.length); } Lookup lookup = MethodHandles.lookup(); ! Class<?> hiddenClass = lookup.defineHiddenClass(classBytes, true, NESTMATE, WEAK).lookupClass(); // (2) Make sure all paths of doWork are profiled and compiled for (int i = 0; i < 100000; ++i) { doWork(hiddenClass); } --- 120,130 ---- if (length != -1 && classBytes.length != length) { throw new IOException("Expected:" + length + ", actual: " + classBytes.length); } Lookup lookup = MethodHandles.lookup(); ! Class<?> hiddenClass = lookup.defineHiddenClass(classBytes, true, NESTMATE).lookupClass(); // (2) Make sure all paths of doWork are profiled and compiled for (int i = 0; i < 100000; ++i) { doWork(hiddenClass); }
< prev index next >