This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: crazy idea: gcj as a caching jit?


Adam Megacz wrote:

>Had an idea today...
>
>With Bryce's indirect-invoke patches, you can actually use gcj as a
>caching JIT (like Microsoft's .NOT) -- hack interpret.cc to pass the
>bytecodes through gcj, produce com.yourdomain.yourclass.so, dlopen()
>it, and cache the .so it somewhere with an md5 of the original .class
>file (to detect if newer versions of the class have arrived and need
>to be recompiled).
>


Yes, a few people have proposed something like this in the past. You 
could probibly do this just by writing a special classloader, no need to 
hack interpret.cc. I think its a bit too hackish myself ;-)

regards

Bryce.




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]