8050167: linux-sparcv9: hs_err file does not show any stack information

Mon, 21 Jul 2014 06:00:44 -0700

author
zgu
date
Mon, 21 Jul 2014 06:00:44 -0700
changeset 6921
fbc0575cc9e4
parent 6920
1cddf026d2cc
child 6922
4aabe6c45b56

8050167: linux-sparcv9: hs_err file does not show any stack information
Summary: Fixed creation of starting stack frame for stack walking in error handler
Reviewed-by: coleenp, mikael

src/os_cpu/linux_sparc/vm/os_linux_sparc.cpp file | annotate | diff | comparison | revisions
     1.1 --- a/src/os_cpu/linux_sparc/vm/os_linux_sparc.cpp	Fri Jul 18 11:14:20 2014 -0700
     1.2 +++ b/src/os_cpu/linux_sparc/vm/os_linux_sparc.cpp	Mon Jul 21 06:00:44 2014 -0700
     1.3 @@ -118,7 +118,7 @@
     1.4        *ret_sp = os::Linux::ucontext_get_sp(uc);
     1.5      }
     1.6      if (ret_fp) {
     1.7 -      *ret_fp = os::Linux::ucontext_get_fp(uc);
     1.8 +      *ret_fp = (intptr_t*)NULL;
     1.9      }
    1.10    } else {
    1.11      // construct empty ExtendedPC for return value checking
    1.12 @@ -136,9 +136,8 @@
    1.13  
    1.14  frame os::fetch_frame_from_context(void* ucVoid) {
    1.15    intptr_t* sp;
    1.16 -  intptr_t* fp;
    1.17 -  ExtendedPC epc = fetch_frame_from_context(ucVoid, &sp, &fp);
    1.18 -  return frame(sp, fp, epc.pc());
    1.19 +  ExtendedPC epc = fetch_frame_from_context(ucVoid, &sp, NULL);
    1.20 +  return frame(sp, frame::unpatchable, epc.pc());
    1.21  }
    1.22  
    1.23  frame os::get_sender_for_C_frame(frame* fr) {

mercurial