AccessController speedup

Andrew Haley aph@redhat.com
Tue Aug 22 15:58:00 GMT 2006


Scott Gilbertson writes:
 > From: "Gary Benson"
 > > 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.
 > 
 > I'm getting a segmentation fault that could be related to the
 > recent unwinder changes. I have the core dump and binary that
 > generated the backtrace below. The problem happens with both
 > static and dynamic executables.
 > 
 > Is there any information I can provide (memory dumps or whatever)
 > that would help to determine what's happening?
 > 
 > Do you suppose "--disable-tls" or "--enable-sjlj-exceptions" has
 > anything to do with it?
I suspect so. Don't use sjlj on Linux.
Andrew.


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /