Search in sources :

Example 11 with J9MemTagPointer

use of com.ibm.j9ddr.vm29.pointer.generated.J9MemTagPointer in project openj9 by eclipse.

the class J9MemTagCommands method printMemTagForFindCallSite.

private void printMemTagForFindCallSite(MemTagEntry memTagEntry) {
    J9MemTagPointer header = memTagEntry.getHeader();
    try {
        String callsite = header.callSite().getCStringAtOffset(0);
        out.println(String.format(" !j9x %s,%s\t%s", J9MemTagHelper.j9mem_get_memory_base(header).getHexAddress(), header.allocSize().getHexValue(), callsite));
    } catch (CorruptDataException e) {
        // Unlikely - we've already checksummed the block
        e.printStackTrace(out);
    }
}
Also used : CorruptDataException(com.ibm.j9ddr.CorruptDataException) J9MemTagPointer(com.ibm.j9ddr.vm29.pointer.generated.J9MemTagPointer)

Aggregations

J9MemTagPointer (com.ibm.j9ddr.vm29.pointer.generated.J9MemTagPointer)8 CorruptDataException (com.ibm.j9ddr.CorruptDataException)7 J9MemTagIterator (com.ibm.j9ddr.vm29.j9.walkers.J9MemTagIterator)4 VoidPointer (com.ibm.j9ddr.vm29.pointer.VoidPointer)2 ArrayList (java.util.ArrayList)2 AddressedCorruptDataException (com.ibm.j9ddr.AddressedCorruptDataException)1 U32Pointer (com.ibm.j9ddr.vm29.pointer.U32Pointer)1 U8Pointer (com.ibm.j9ddr.vm29.pointer.U8Pointer)1 IDATA (com.ibm.j9ddr.vm29.types.IDATA)1 U32 (com.ibm.j9ddr.vm29.types.U32)1 UDATA (com.ibm.j9ddr.vm29.types.UDATA)1 NoSuchElementException (java.util.NoSuchElementException)1 TreeMap (java.util.TreeMap)1