harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Egor Pasko <egor.pa...@gmail.com>
Subject Re: [drlvm] vm-jit interface. 1 more method for supension points
Date Wed, 16 May 2007 04:27:00 GMT
On the 0x2D7 day of Apache Harmony Xiao-Feng Li wrote:
> George, is it possible to reuse the same function and let it to return
> different flags for the purpose, such as NEVER_INTERRUPTIBLE,
> SOMETIMES_INTERRUPTIBLE, ALWAYS_INTERRUPTIBLE?

I am +1 tho this idea

> Thanks,
> xiaofeng
> 
> On 5/15/07, George Timoshenko <george.timoshenko@gmail.com> wrote:
> > Some time ago 'vm_helper_is_gc_interruptible' method appeared in the
> > interface. It is used in JIT to identify if a helper call can be
> > interrupted by gc for enumeration. And if a helper is interruptible in
> > some circumstances and is not interruptible in other cases the methods
> > returns TRUE, as GC-support in JIT must be ready to provide data for gc.
> > (for example there are monitor enter/exit helpers with such behavior)
> >
> > Another JIT functionality (BBPolling) needs to know if a helper call can
> > be interrupted for sure. So that method (vm_helper_is_gc_interruptible)
> > can not be used as is.
> >
> > My suggestion is to extend VM-JIT interface with one more method
> > 'vm_helper_is_interruptible' that returns true if a helper can be
> > interrupted for sure.
> >
> > Possible implementation is attached to HARMONY-2057
> > (https://issues.apache.org/jira/browse/HARMONY-2057)
> >
> > What do you think about it?
> >
> >
> 
> 
> -- 
> http://xiao-feng.blogspot.com
> 

-- 
Egor Pasko


Mime
View raw message