diff src/cpu/x86/vm/frame_x86.inline.hpp @ 22803:f43fad8786fc

8058345: Refactor native stack printing from vmError.cpp to debug.cpp to make it available in gdb as well Summary: Also fix stack trace on x86 to enable walking of runtime stubs and native wrappers Reviewed-by: kvn
author simonis
date Wed, 24 Sep 2014 12:19:07 -0700
parents af8cc1dae608
children e8260b6328fb
line wrap: on
line diff
--- a/src/cpu/x86/vm/frame_x86.inline.hpp	Mon Dec 15 18:11:51 2014 +0400
+++ b/src/cpu/x86/vm/frame_x86.inline.hpp	Wed Sep 24 12:19:07 2014 -0700
@@ -40,7 +40,7 @@
   _deopt_state = unknown;
 }
 
-inline frame::frame(intptr_t* sp, intptr_t* fp, address pc) {
+inline void frame::init(intptr_t* sp, intptr_t* fp, address pc) {
   _sp = sp;
   _unextended_sp = sp;
   _fp = fp;
@@ -58,6 +58,10 @@
   }
 }
 
+inline frame::frame(intptr_t* sp, intptr_t* fp, address pc) {
+  init(sp, fp, pc);
+}
+
 inline frame::frame(intptr_t* sp, intptr_t* unextended_sp, intptr_t* fp, address pc) {
   _sp = sp;
   _unextended_sp = unextended_sp;