Trap indices

John Rose John.Rose at Sun.COM
Fri Mar 6 10:57:33 PST 2009


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/




More information about the hotspot-compiler-dev mailing list