Locating call sites of methods in C2

Christian Thalinger christian.thalinger at oracle.com
Mon Dec 8 18:15:18 UTC 2014

> On Dec 5, 2014, at 2:49 AM, Manas Thakur <manasthakur17 at gmail.com> wrote:
> Hi
> Is there a way to access the call-site (possibly in terms of the bytecode offset) of a method being compiled by C2? Doesn’t the current compile task store it in some variable?

I’m not sure I understand.  Are you asking for the BCI (bytecode index) of the invoke instruction to method bar if you compile a method foo which calls bar:

void foo() {

> Regards,
> Manas

More information about the hotspot-compiler-dev mailing list