< prev index next >
src/os/posix/vm/os_posix.cpp
Print this page
rev 11936 : 8165315: [ppc] Port "8133749: NMT detail stack trace cleanup"
Summary: Also add methods to check for slow/fastdebug to Platform.java.
@@ -94,10 +94,14 @@
int os::get_native_stack(address* stack, int frames, int toSkip) {
int frame_idx = 0;
int num_of_frames; // number of frames captured
frame fr = os::current_frame();
+ // On ppc, current_frame returns the frame of get_native_stack(). This is the
+ // behaviour that is specified in os.hpp for this method. So adapt here.
+ // (Else we would also loose one frame in hs_err file.).
+ PPC_ONLY(toSkip++);
while (fr.pc() && frame_idx < frames) {
if (toSkip > 0) {
toSkip --;
} else {
stack[frame_idx ++] = fr.pc();
< prev index next >