harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mikhail Fursov (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-1949) [drlvm][gc_cc] Refactoring TLS access in GC_CC.
Date Wed, 25 Oct 2006 14:00:18 GMT
    [ http://issues.apache.org/jira/browse/HARMONY-1949?page=comments#action_12444660 ] 
            
Mikhail Fursov commented on HARMONY-1949:
-----------------------------------------

Here is a microtest, that shows that there are no performance degradation with this patch:

public class Test {
    public static void main(String[] args) {
        Test t = new Test(); //resolve and initialize the helper. Needed only for helper inlining.
        foo2(); 
    }

    public static void foo2() {

        long t1 = System.currentTimeMillis();
        Object o = null;
        for (int i=0;i<400*1000*1000;i++) {
            o = new Object();
        }

        long t2 = System.currentTimeMillis();
        System.out.println("Time:"+(t2-t1) + " o="+o);
    }

}

The results:
1) clean + H1942: 
Time:14734 o=java.lang.Object@205dbce4

2) clean + H1942 + this JIRA
Time:13719 o=java.lang.Object@20f2d684

3) clean + H1942 + this JIRA + helper inlining JIRA  (Note: JIT does optimize address ariphmethics
today and do not moves fs[14]+offset out of the loops)
Time:2640 o=java.lang.Object@20488304

Of course the performance benefit on real application will be 100 times lower. :(


> [drlvm][gc_cc] Refactoring TLS access in GC_CC.
> -----------------------------------------------
>
>                 Key: HARMONY-1949
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1949
>             Project: Harmony
>          Issue Type: Improvement
>          Components: DRLVM
>            Reporter: Mikhail Fursov
>         Assigned To: weldon washburn
>         Attachments: gc_cc.diff
>
>
> This patch changes the way GC requests TLS data: Instead of asking VM  GC calls to TM
directly.
> After the patch is applied GC is able to report static offsets for all TLS fields it
uses to JIT

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message