< prev index next >
test/hotspot/jtreg/runtime/HiddenClasses/StressHiddenClasses.java
Print this page
*** 54,64 ****
for (int x = 0; x < ITERATIONS; x++) {
Thread parserThread = new Thread() {
public void run() {
try {
Lookup lookup = MethodHandles.lookup();
! Class<?> c = lookup.defineHiddenClass(klassbuf, true, NESTMATE, WEAK).lookupClass();
} catch (Throwable e) {
throw new RuntimeException("Unexpected exception: " + e.toString());
}
}
};
--- 54,64 ----
for (int x = 0; x < ITERATIONS; x++) {
Thread parserThread = new Thread() {
public void run() {
try {
Lookup lookup = MethodHandles.lookup();
! Class<?> c = lookup.defineHiddenClass(klassbuf, true, NESTMATE).lookupClass();
} catch (Throwable e) {
throw new RuntimeException("Unexpected exception: " + e.toString());
}
}
};
< prev index next >