Hi Gili, you can take a look at the source at http://openjdk.java.net, see j2se/src/share/classes/sun/java2d/Disposer*.java j2se/src/share/native/sun/java2d/Disposer.c/h
It's relatively well documented.. But shortly, it uses ReferenceQueue and WeakReferences. It puts a weak reference to the tracked object into a reference queue and when the object is gone the reference is retrieved from the queue, it disposes the resources associated with the object (those resources are kept in a special DisposerRecord object). Thanks, Dmitri [EMAIL PROTECTED] wrote:
Hi, The following two BugParade issues discuss how Sun replaced class finalizers using the Java2D Disposer mechanism: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6247526 http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6299405 This peaked my curiosity, how does this mechanism work? Thank you, Gili [Message sent by forum member 'cowwoc' (cowwoc)] http://forums.java.net/jive/thread.jspa?messageID=239660 =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA2D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
=========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA2D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".