You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Gregory Shimansky (JIRA)" <ji...@apache.org> on 2008/02/06 15:35:09 UTC

[jira] Resolved: (HARMONY-4555) [drlvm][thread][perf]Thread.currentThread() works slowly

     [ https://issues.apache.org/jira/browse/HARMONY-4555?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gregory Shimansky resolved HARMONY-4555.
----------------------------------------

    Resolution: Fixed

Patch is applied at 619000.

> [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
>            Assignee: Gregory Shimansky
>         Attachments: Thread.currentThread-VMMagic-final.patch, Thread.currentThread-VMMagic-workaround-2.patch, Thread.currentThread-VMMagic-workaround.patch, Thread.currentThread-VMMagic.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.