8357382: runtime/cds/appcds/aotClassLinking/BulkLoaderTest.java#aot fails with Xcomp and C1
Reviewed-by: iklam, kvn
This commit is contained in:
parent
ef4cbec6fb
commit
429158218b
@ -72,6 +72,7 @@ import java.io.File;
|
||||
import java.lang.StackWalker.StackFrame;
|
||||
import java.net.URL;
|
||||
import java.net.URLClassLoader;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
@ -312,12 +313,15 @@ class BulkLoaderTestApp {
|
||||
}
|
||||
}
|
||||
|
||||
static ArrayList<ClassLoader> savedLoaders = new ArrayList<>();
|
||||
|
||||
static Object initFromCustomLoader() throws Exception {
|
||||
String path = "cust.jar";
|
||||
URL url = new File(path).toURI().toURL();
|
||||
URL[] urls = new URL[] {url};
|
||||
URLClassLoader urlClassLoader =
|
||||
new URLClassLoader("MyLoader", urls, null);
|
||||
savedLoaders.add(urlClassLoader);
|
||||
Class c = Class.forName("SimpleCusty", true, urlClassLoader);
|
||||
return c.newInstance();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user