X-Git-Url: http://git.megacz.com/?p=nestedvm.git;a=blobdiff_plain;f=src%2Forg%2Fibex%2Fnestedvm%2FRuntimeCompiler.java;fp=src%2Forg%2Fibex%2Fnestedvm%2FRuntimeCompiler.java;h=80f56ac2995ca51844ec5a4d03ea42bfb7f3d290;hp=2aa4305af24f59606bd227b2eb83d73b47bae37c;hb=98f786ce8ee1fcd9568d1c367160851d32e1c786;hpb=ad692a248f2ed9412db5b313b85fd8365488017f diff --git a/src/org/ibex/nestedvm/RuntimeCompiler.java b/src/org/ibex/nestedvm/RuntimeCompiler.java index 2aa4305..80f56ac 100644 --- a/src/org/ibex/nestedvm/RuntimeCompiler.java +++ b/src/org/ibex/nestedvm/RuntimeCompiler.java @@ -5,8 +5,9 @@ import java.io.*; import org.ibex.nestedvm.util.*; // FEATURE: This need a lot of work to support binaries spanned across many classes -public class RuntimeCompiler { - private static final SingleClassLoader singleClassLoader = new SingleClassLoader(); +public class RuntimeCompiler { + // FEATURE: Do we need to periodicly create a new classloader to allow old clases to be GCed? + private static SingleClassLoader singleClassLoader = new SingleClassLoader(); // FEATURE: Is it ok if this overflows? private static long nextID = 1; private static synchronized String uniqueID() { return Long.toString(nextID++); }