Hello,

On Fri, Jun 09, 2006 at 01:52:32PM -0700, [EMAIL PROTECTED] wrote:
 > First, is there a good description available on how the sun.java2d.Disposer 
 > class works in Java 1.5.0?

  There isn't such a description. Disoser is an internal mechanism
  for disposing of graphics-related resources and is not public.

 > Second, I think I've found a possible reference leak.
 >
 > 1) A console-only application is started.
 > 2) After 10 minutes of running, a thread dump does NOT show any Java2D 
 > Disposer thread.
 > 3) After 20 minutes of running, a background image is created using Java2D, 
 > and sent over the network. (The image is never shown on screen, the app is 
 > still running in console mode)
 > 4) After (3) above, a new thread can be seen in the thread dump (the 
 > sun.java2d.Disposer thread).

  All this seem to work as expected.

 > Now, the original thread that started the offline rendering had a couple of 
 > InheritableThreadLocals set. I don't know how/where the disposer thread is 
 > created, but it appears that it (as you would guess) inherits the 
 > InteritableThreadLocals of the thread that caused Java2D to be (lazily?) 
 > initialized.
 >
 > Of course, one of the InheritableThreadLocals (indirectly) references a 
 > ClassLoader that has 2GB of memory attached. Later in the application 
 > lifecycle, this prevents garbage collection, and triggers a memory overflow 
 > (OOM).
 > [Message sent by forum member 'plethora' (plethora)]

  Could you please try your test on Mustang? http://mustang.dev.java.net .
  We've made some changes in mustang to the way the disposer thread is
  started which could have affected your problem.

  Thank you,
    Dmitri
  Java2D Team

>
 > http://forums.java.net/jive/thread.jspa?messageID=121561
 >
 > ===========================================================================
 > 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".

Reply via email to