- public static Class compile(Seekable data) throws IOException, Compiler.Exn {
- String className = "nextedvm.runtimecompiled_" + uniqueID();
+ public static Class compile(Seekable data) throws IOException, Compiler.Exn { return compile(data,null); }
+ public static Class compile(Seekable data, String extraoptions) throws IOException, Compiler.Exn {
+ int id;
+ synchronized(RuntimeCompiler.class) {
+ if(nextID == 32 || singleClassLoader == null) {
+ singleClassLoader = new SingleClassLoader();
+ nextID = 0;
+ }
+ id = nextID++;
+ }
+ String className = "nestedvm.runtimecompiled_" + id;