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:
Chris Plummer 2016-08-15 13:13:48 -07:00
parent 2a46a44214
commit eabe746ff6
4 changed files with 128 additions and 8 deletions

View file

@ -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();