R
Richard Maher
Hi,
I have read the recent "garbage collection" and "persistent object" threads
here in cljp and have a related, yet different, question(s) that I hope some
people can help me with. (My interest/focus is strictly to do with Applets
right now, and am quite happy for everything to disappear ( +/- finalize() )
when the JVM and browser instance dies.)
Are static class variables once referenced in an Applet ever candidates for
garbage-collection in a JVM, specifically when there are no longer any
active Applets currently referencing them? (That is, the page that loaded
the Applet, the JVM, and the class with the class-variables, has long since
gone.) IOW, is the reference to these static class variables held by the
class-loading JVM itself rather than by each Applet? Furthermore, that they
will persist as long as the JVM persists?
If events are then delivered on such static objects (once again, sometime
after the last Applet/ web-page to have referenced them has long gone) what
thread is the event delivered in? (I'm guessing the standard browser EDT but
the Java 6 reorg with Applet threads has me doubting it)
Cheers Richard Maher
I have read the recent "garbage collection" and "persistent object" threads
here in cljp and have a related, yet different, question(s) that I hope some
people can help me with. (My interest/focus is strictly to do with Applets
right now, and am quite happy for everything to disappear ( +/- finalize() )
when the JVM and browser instance dies.)
Are static class variables once referenced in an Applet ever candidates for
garbage-collection in a JVM, specifically when there are no longer any
active Applets currently referencing them? (That is, the page that loaded
the Applet, the JVM, and the class with the class-variables, has long since
gone.) IOW, is the reference to these static class variables held by the
class-loading JVM itself rather than by each Applet? Furthermore, that they
will persist as long as the JVM persists?
If events are then delivered on such static objects (once again, sometime
after the last Applet/ web-page to have referenced them has long gone) what
thread is the event delivered in? (I'm guessing the standard browser EDT but
the Java 6 reorg with Applet threads has me doubting it)
Cheers Richard Maher