FYI: AccessController speedup

Andrew Haley aph@redhat.com
Mon Aug 21 08:47:00 GMT 2006


Tom Tromey writes:
 > >>>>> "Gary" == Gary Benson <gbenson@redhat.com> writes:
 > 
 > Gary> This commit changes VMAccessController to use an instance
 > Gary> variable in Thread to store its state.  On my Tomcat benchmark
 > Gary> this improves performace from 2400 to 2700 requests per second.
 > 
 > Wow.  If shaving cycles here helps... maybe on supported platforms we
 > should be using real TLS?  Search for HAVE_TLS in natClass.cc to see
 > how we're already using it.
 > 
 > But maybe it is just avoiding the gratuitous overhead of ThreadLocal
 > that is a win.

I'm going to fix gcj to use real TLS for ThreadLocal variables.  I'll
do it this week unless something more urgent comes up.

Andrew.



More information about the Java-patches mailing list