On Thursday, January 13, 2011 11:26:16 AM UTC+1, Robert McIntyre wrote:
>
> On a related note, is there any way to completely clear all the
> bytecode that's being stored internally by the jvm, forcing it to fall
> back to the hard-disk version of the classfiles available on the
> classpath?


No, there's not. Classes are immutable once loaded, at least on standard 
JVMs. If you want to reload them, you need to use a separate classloader, 
but then, existing instances won't be updated, and the new classes will be 
completely unrelated to the old ones. In other words, a class is identified 
by the pair (name, classloader) and is immutable.

Also in general the existence of a hard-disk version of the class file is 
not guaranteed. Class files can be loaded from the network or created 
dynamically in memory.

Bye,
Alessio

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to