[PATCH] anonk: Add a method Unsafe.getAnonymousHostClass

2008-04-26 Thread Rémi Forax
Hi, please review this patch, it allows to export to Java the host_class used to create the anonymous class. cheers, Rémi diff --git a/src/share/vm/oops/instanceKlass.hpp b/src/share/vm/oops/instanceKlass.hpp --- a/src/share/vm/oops/instanceKlass.hpp +++ b/src/share/vm/oops/instanceKlass.hpp @@

Re: AnonymousClassLoader in JRuby

2008-04-26 Thread Rémi Forax
Charles Oliver Nutter a écrit : > I've managed to wire the AnonymousClassLoader into JRuby. A patch is > attached, that will probably be rather confusing to anyone unfamiliar > with JRuby. > > ClassCache is basically a smart class-loading utility that can be used > to share loaded classes across

Re: AnonymousClassLoader in JRuby

2008-04-26 Thread Charles Oliver Nutter
Another thought occurs about how/where this would be useful. Consider it a "duh" moment for me, given that much of this work is being driven by JSR292... ACL will be incredibly useful for generating inexpensive method handles. Duh. So you have a template that represents the general way in whic

Re: AnonymousClassLoader in JRuby

2008-04-26 Thread Charles Oliver Nutter
Ok, reading back over some notes and anonk.txt I think I understand a bit better. Tell me if I'm understanding things right. java.dyn.AnonymousClassLoader is not a java.lang.ClassLoader itself. It bypasses the normal classloading chain by calling the new Unsafe method that allocates and loads a

AnonymousClassLoader in JRuby

2008-04-26 Thread Charles Oliver Nutter
I've managed to wire the AnonymousClassLoader into JRuby. A patch is attached, that will probably be rather confusing to anyone unfamiliar with JRuby. ClassCache is basically a smart class-loading utility that can be used to share loaded classes across JRuby instances without keeping hard ref