RFR(XXS) 8218558: NMT stack traces in output should show mt component for virtual memory allocations

zgu at redhat.com zgu at redhat.com
Wed Feb 6 15:23:42 UTC 2019


Please review this small enhancement that outputs memory types for
virtual memory allocations [1]. This mirrors JDK-8139673, which outputs
memory types for malloc allocations.

Bug: https://bugs.openjdk.java.net/browse/JDK-8218558
Webrev: http://cr.openjdk.java.net/~zgu/JDK-8218558/webrev.00/index.htm
l

Test:
  hotspot_nmt on Linux x64 (fastdebug and release),
  passed all except runtime/NMT/CheckForProperDetailStackTrace.java  
  (JDK-8218458) with release build.

Thanks,

-Zhengyu

[1] New outputs:

detail:
[0x00007fb9ea533218] SafepointMechanism::initialize()+0x48
[0x00007fb9ea7cd6bc] Threads::create_vm(JavaVMInitArgs*, bool*)+0x19c
[0x00007fb9e9ea5639] JNI_CreateJavaVM+0x69
[0x00007fb9eb9c9176] JavaMain+0x86
                             (reserved=8KB, committed=8KB
Type=Safepoint)

detail.diff:
[0x00007ff269ad84b4] ReservedSpace::ReservedSpace(unsigned long,
unsigned long)+0x1a4
[0x00007ff268fd56a7] CodeHeap::reserve(ReservedSpace, unsigned long,
unsigned long)+0x327
[0x00007ff268bd84df] CodeCache::add_heap(ReservedSpace, char const*,
int)+0x13f
[0x00007ff268bd8bbe] CodeCache::initialize_heaps()+0x4be
                             (mmap: reserved=940KB, committed=64KB +4KB
Type=Code)


More information about the hotspot-runtime-dev mailing list