Code Review for WeakReference leak in the Logging API (6942989)

Mandy Chung mandy.chung at
Fri Jun 11 13:09:36 PDT 2010

Daniel D. Daugherty wrote:
> The theory is that there shouldn't be too many Logger objects in a 
> normal system and
> once they have been added, then this fix doesn't come into play.
> I would be surprised if a real system had more than 100 Logger
> objects.

FYI.  AWT creates a number of loggers  (see

Running a simple Framer application (awt helloworld) with JDK 7 b70 
creates 79 loggers on solaris-i586 and 34 loggers on windows-i586.  
SwingSet2 creates a total of 85 loggers including a few non-awt ones on 
solaris-i586 and 35 on windows-i586).


More information about the hotspot-runtime-dev mailing list