This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

FYI: AccessController speedup


Hi all,

Classpath's VMAccessController uses ThreadLocal objects to store per-
thread state information.  Both Classpath and GCJ have a pure Java
ThreadLocal implementation which results in a lot of extra GC activity
with a security manager.  This commit changes VMAccessController to
use an instance variable in Thread to store its state.  On my Tomcat
benchmark this improves performace from 2400 to 2700 requests per
second.

Cheers,
Gary

Attachment: accesscontrolstate.patch
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]