harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Egor Pasko (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-5084) [drlvm][jit][opt] LightJNI
Date Tue, 27 Nov 2007 08:13:43 GMT

    [ https://issues.apache.org/jira/browse/HARMONY-5084?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12545744

Egor Pasko commented on HARMONY-5084:

> Egor, what methods do you mean? from java/lang/Math?

yes, the question is: what's better, hardcoded names in Jitrino or special annotations in
classlib recognised by Jitrino (and possibly other JITs)
I prefer the second alternative! 

> [drlvm][jit][opt] LightJNI
> --------------------------
>                 Key: HARMONY-5084
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5084
>             Project: Harmony
>          Issue Type: New Feature
>          Components: DRLVM
>         Environment: Tested on Win32 IA32 platform. I think on IA32 Linux it will be
also o.k.
>            Reporter: Yuri Kashnikoff
>         Attachments: light_jni.zip
> This patch adds new pass called "light_jni". This pass eliminates stub calling for some
methods which do not need stubbing (they do not use JNIEnv for example). This patch contain
some hardcoded names of such methods (all java/lang/Math methods and java/lang/VMThreadManager::currentThread).
You can add functions in list using command line param:
> -XX:jit.arg.codegen.light_jni.light_jni_methods=ClassName::MethodName,ClassName::MethodName,...
> Patch was tested on some microbenchmarks and  Dacapo::jython (with n=4). The results
for Dacapo::jython look good:
> mode     on     off
> server   6700   7800     
> client    7200   8000

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

View raw message