You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Aleksey Shipilev (JIRA)" <ji...@apache.org> on 2007/09/04 12:58:58 UTC

[jira] Updated: (HARMONY-4729) [drlvm][jni] JNI transition should inline hythread_suspend_enable() and hythread_suspend_disable()

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

Aleksey Shipilev updated HARMONY-4729:
--------------------------------------

    Attachment: jni-hythr.patch

jni-hythr.patch
The patch is rather dirty and was tested only on Windows/ia32. This implementation lacks support for other architectures.

> [drlvm][jni] JNI transition should inline hythread_suspend_enable() and hythread_suspend_disable()
> --------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-4729
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4729
>             Project: Harmony
>          Issue Type: Improvement
>          Components: DRLVM
>            Reporter: Aleksey Shipilev
>         Attachments: jni-hythr.patch
>
>
> JNI calls a pair of hythread_suspend_enable() and hythread_suspend_disable() every time the transition occurs. That lead to serious overhead due to calls. 
> The idea is to inline these methods by implementing two mnemonics in LIL - hse() and hsd(), then LIL codegenerator will generate the code for them. More solid solution should inline method calls in LIL, but it's too complex to achieve.

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