harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mikhail Fursov" <mike.fur...@gmail.com>
Subject Re: [drlvm] Helper inlining in JIT
Date Wed, 16 Aug 2006 09:08:31 GMT
On 8/16/06, Xiao-Feng Li <xiaofeng.li@gmail.com> wrote:
> > AFAIU  it's  enough to annotate JNI method with calling convention
> details
> > and to support it in JIT and VM.  So I see no difference in
> implementation
> > with helper inlining here. Just an extension or another version of
> helper
> > inlining mechanism.
> > Am I missing something about JNI support?
> Yes, I guess you were missing something. ;-)
> The service routine inlining is to attack the performance issue
> brought when Java code calls into VM native services. If the JNI is
> not a problem, this Java inlining can be not very interesting.

So why can't we optimize native (JNI) calls from Java code using annotations
similar to those used to annotate helper's slow call above?
Once developer annotates native call with information about it's sideffects
we can optimize the call and reduce JNI overhead.

Mikhail Fursov

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message