This is the mail archive of the
mailing list for the Java project.
Re: FYI: AccessController speedup
Tom Tromey writes:
> >>>>> "Gary" == Gary Benson <email@example.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.