Trap indices

Gary Benson gbenson at redhat.com
Mon Mar 9 08:08:02 PDT 2009


Hi John,

Thanks for that, that's exactly what I needed.

Cheers,
Gary

John Rose wrote:
> If you are talking about the trap indexes in deoptimization.hpp,
> they are constant pool indexes in the caller.  If the trap pertains
> to a constant in the caller's constant pool, this is the relevant
> information.  Other kinds of traps have less informative markings,
> such as "unexpected type", "null check", etc.  The method/bci is
> always available for inspection.
>
> -- John
>
> On Mar 6, 2009, at 1:23 AM, Gary Benson wrote:
> > Hi all,
> >
> > When you create a trap, how is the trap index used?  For Shark,
> > I want to create a trap for non-final virtual calls where the
> > callee's holder is not loaded (ie the vtable is set up) but what
> > would be the correct index to create the trap with?  The index
> > of the callee in the caller's pool seems wrong, since that is
> > probably loaded already at that time.
> >
> > Cheers,
> > Gary
> >
> > -- 
> > http://gbenson.net/

-- 
http://gbenson.net/



More information about the hotspot-compiler-dev mailing list