Translate pc to bci

Tom Rodriguez Thomas.Rodriguez at Sun.COM
Fri Apr 24 09:16:50 PDT 2009


A pc may translate to multiple bcis because of inlining and that's  
described by a ScopeDesc.  Use method::scope_desc_at to find the  
ScopeDesc for a pc and get the bci from the from that.  If you want  
the full chain then use ScopeDesc::sender() to get the caller.

tom

On Apr 24, 2009, at 6:18 AM, Gary Benson wrote:

> Hi all,
>
> How do you figure out what bci corresponds to a particular pc
> in compiled code?  I thought it would be similar to finding an
> OopMap (find the CodeBlob in the CodeCache, find the OopMap in
> the CodeBlob) but it doesn't seem to be that easy...
>
> Thanks in advance,
> Gary
>
> -- 
> http://gbenson.net/




More information about the hotspot-compiler-dev mailing list