From: David W. <cw...@ui...> - 2002-03-21 03:14:54
|
Hi, I am working on the optimizing compiler and would like to know whether it is ok to do things like OPT_RVMClassLoaderProxy.findOrCreateType("Ljava/lang/Runnable;") inside the optimizing compiler. Would it violate the Java classloading semantics? Moreover, if the following lines of code are performed within the optimizing compiler, does it violate the classloading semantics? I checked the VM_Type.isAssignableWith () method and it seems that the call would trigger class loading. VM_Type type = ...; VM_Type runnableType = OPT_RVMClassLoaderProxy.findOrCreateType ("Ljava/lang/Runnable;"); if (VM_Type.isAssignableWith (runnableType, type)) {...} If VM_Type.isAssignableWith () is not classloading-safe, are there any ways to do similar thing safely? Thanks, David |