bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug classpath/33690] New: Reduce cost of ThreadLocal(s) to improve Jyth


From: gnu_andrew at member dot fsf dot org
Subject: [Bug classpath/33690] New: Reduce cost of ThreadLocal(s) to improve Jython performance
Date: 8 Oct 2007 09:45:38 -0000

Classpath's implementation of ThreadLocal(s) is expensive for get operations.
The DaCapo Jython benchmark holds the state of the runtime in a thread local
and uses it frequently (nearly every python operator) to make decisions,
amongst other things, about adaptive compilation. The Classpath implementation
of ThreadLocal(s) is to use a WeakHashMap, so every ThreadLocal get turns into
a WeakHashMap get, which makes the cost of operators in python considerably
more expensive.  Daniel Frampton has implemented a version using a cheaper
ThreadLocal-specific weak hash map.

http://jira.codehaus.org/browse/RVM-185


-- 
           Summary: Reduce cost of ThreadLocal(s) to improve Jython
                    performance
           Product: classpath
           Version: 0.95
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: classpath
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: gnu_andrew at member dot fsf dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33690





reply via email to

[Prev in Thread] Current Thread [Next in Thread]