NMT_TrackingStackDepth is hard coded as 4.
Sometimes 4 stack depth tells nothing.
[0x00007fc6d4909022] ChunkPool::allocate(unsigned long, AllocFailStrategy::AllocFailEnum)+0x112
[0x00007fc6d4908907] Arena::grow(unsigned long, AllocFailStrategy::AllocFailEnum)+0xb7
[0x00007fc6d5412393] vframe::sender() const+0xa3
[0x00007fc6d5417788] compiledVFrame::sender() const+0xf8
(malloc=1200592KB type=Arena Chunk #37546)
It would be useful to change it dynamically(e.g. 10 depth):
[0x00007f7dee69a600] ChunkPool::allocate(unsigned long, AllocFailStrategy::AllocFailEnum)+0x150
[0x00007f7dee699e97] Arena::grow(unsigned long, AllocFailStrategy::AllocFailEnum)+0xf7
[0x00007f7def105791] compiledVFrame::sender() const+0x91
[0x00007f7def0b1839] ThreadStackTrace::dump_stack_at_safepoint(int)+0xa9
[0x00007f7def1161c8] VM_ThreadDump::doit()+0x238
[0x00007f7def116360] VM_Operation::evaluate()+0xe0
[0x00007f7def11cc17] VMThread::evaluate_operation(VM_Operation*)+0xc7
[0x00007f7def11d05e] VMThread::loop()+0x28e
[0x00007f7def11d5bd] VMThread::run()+0x6d
[0x00007f7def0a2897] Thread::call_run()+0x197
(malloc=872481KB type=Arena Chunk #27285)
Sometimes 4 stack depth tells nothing.
[0x00007fc6d4909022] ChunkPool::allocate(unsigned long, AllocFailStrategy::AllocFailEnum)+0x112
[0x00007fc6d4908907] Arena::grow(unsigned long, AllocFailStrategy::AllocFailEnum)+0xb7
[0x00007fc6d5412393] vframe::sender() const+0xa3
[0x00007fc6d5417788] compiledVFrame::sender() const+0xf8
(malloc=1200592KB type=Arena Chunk #37546)
It would be useful to change it dynamically(e.g. 10 depth):
[0x00007f7dee69a600] ChunkPool::allocate(unsigned long, AllocFailStrategy::AllocFailEnum)+0x150
[0x00007f7dee699e97] Arena::grow(unsigned long, AllocFailStrategy::AllocFailEnum)+0xf7
[0x00007f7def105791] compiledVFrame::sender() const+0x91
[0x00007f7def0b1839] ThreadStackTrace::dump_stack_at_safepoint(int)+0xa9
[0x00007f7def1161c8] VM_ThreadDump::doit()+0x238
[0x00007f7def116360] VM_Operation::evaluate()+0xe0
[0x00007f7def11cc17] VMThread::evaluate_operation(VM_Operation*)+0xc7
[0x00007f7def11d05e] VMThread::loop()+0x28e
[0x00007f7def11d5bd] VMThread::run()+0x6d
[0x00007f7def0a2897] Thread::call_run()+0x197
(malloc=872481KB type=Arena Chunk #27285)
- duplicates
-
JDK-8318174 NMT: make NativeCallStack stack depth configurable
-
- Open
-