mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-23 20:44:41 +02:00
8133747: NMT includes an extra stack frame due to assumption NMT is making on tail calls being used
Better frame skipping logic in NativeCallStack::NativeCallStack. Reviewed-by: dholmes, zgu
This commit is contained in:
parent
2a46a44214
commit
eabe746ff6
4 changed files with 128 additions and 8 deletions
|
@ -93,10 +93,6 @@ void os::check_dump_limit(char* buffer, size_t bufferSize) {
|
|||
}
|
||||
|
||||
int os::get_native_stack(address* stack, int frames, int toSkip) {
|
||||
#ifdef _NMT_NOINLINE_
|
||||
toSkip++;
|
||||
#endif
|
||||
|
||||
int frame_idx = 0;
|
||||
int num_of_frames; // number of frames captured
|
||||
frame fr = os::current_frame();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue