harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pavel Rebriy (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-4555) [drlvm][thread][perf]Thread.currentThread() works slowly
Date Tue, 05 Feb 2008 16:06:08 GMT

    [ https://issues.apache.org/jira/browse/HARMONY-4555?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12565785#action_12565785
] 

Pavel Rebriy commented on HARMONY-4555:
---------------------------------------

Patch #3 "Thread.currentThread-VMMagic.patch"  is ready to commit.

> [drlvm][thread][perf]Thread.currentThread() works slowly
> --------------------------------------------------------
>
>                 Key: HARMONY-4555
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4555
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Vladimir Strigun
>         Attachments: Thread.currentThread-VMMagic-workaround-2.patch, Thread.currentThread-VMMagic-workaround.patch,
Thread.currentThread-VMMagic.patch, Thread.currentThread-VMMagic.patch
>
>
> The test below shows that Thread.currentThread() method significantly slower in comparison
win Sun. 
> I believe implementation of method through vmmagic could singnificanlty improve the situation.
> Results of test execution:
> java client: 200 msec
> java server: 20 
> harmony server: 5800 msec
> Small test:
> public class CurrentThreadTest {
>     public static void main(String[] args) {
>         long st = System.currentTimeMillis();
>         for(int i=0; i< 100000000; i++) {
>             Thread.currentThread();
>         }
>         long res = System.currentTimeMillis()-st;
>         System.out.println("res="+res);
>     }
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message