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

Mandy Chung mandy.chung at oracle.com
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 
http://bugs.sun.com/view_bug.do?bug_id=6880089)

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).

Mandy


More information about the serviceability-dev mailing list