[rvm-research] Call-Site Information

Shoaib Akram <[email protected]> Tue, 24 May 2016 20:28:26 +0200
Newsgroups gmane.comp.java.jikes.rvm.devel
Message-ID <CAB7d=92djzngns3gBqG8aWMBWMaEkYYG-buO=SPcM=6hqxCE3A@mail.gmail.com>
Hi All,

Hello from PerformanceLab @ Ghent University in Belgium. I want to ask if
there is support in JikesRVM to identify the call-site of an allocation.
Suppose I have the code below:

1  public IntersectionState() {
2       stack = new StackNode[MAX_STACK_SIZE * 2];
3      for (int i = 0; i < stack.length; i++)
4            stack[i] = new StackNode();
5        rstack = new float[53 * 256];
6    }

Each time a new object is allocated (line no. 4 above), I want to store the
call-site information (line 4) in the header of the object. Is it possible
to get the unique identity of the method and index within the method, where
a new object is being allocated from?

There are some routines in runtime/Magic.java that let you get the current
frame pointer or the id of the compiled method, but I am not sure if they
usable from within MMTk(?) Does anyone know an an easy way to get the site
information at allocation time?

Thanks in advance!

-- 
*Shoaib Akram*
*ELIS - Gent University*
*Belgium*

------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j

_______________________________________________
Jikesrvm-researchers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jikesrvm-researchers