src/os_cpu/bsd_zero/vm/os_bsd_zero.cpp

Print this page




  41 #include "mutex_bsd.inline.hpp"
  42 #include "nativeInst_zero.hpp"
  43 #include "os_share_bsd.hpp"
  44 #include "prims/jniFastGetField.hpp"
  45 #include "prims/jvm.h"
  46 #include "prims/jvm_misc.hpp"
  47 #include "runtime/arguments.hpp"
  48 #include "runtime/extendedPC.hpp"
  49 #include "runtime/frame.inline.hpp"
  50 #include "runtime/interfaceSupport.hpp"
  51 #include "runtime/java.hpp"
  52 #include "runtime/javaCalls.hpp"
  53 #include "runtime/mutexLocker.hpp"
  54 #include "runtime/osThread.hpp"
  55 #include "runtime/sharedRuntime.hpp"
  56 #include "runtime/stubRoutines.hpp"
  57 #include "runtime/timer.hpp"
  58 #include "thread_bsd.inline.hpp"
  59 #include "utilities/events.hpp"
  60 #include "utilities/vmError.hpp"
  61 #ifdef COMPILER1
  62 #include "c1/c1_Runtime1.hpp"
  63 #endif
  64 #ifdef COMPILER2
  65 #include "opto/runtime.hpp"
  66 #endif
  67 
  68 address os::current_stack_pointer() {
  69   address dummy = (address) &dummy;
  70   return dummy;
  71 }
  72 
  73 frame os::get_sender_for_C_frame(frame* fr) {
  74   ShouldNotCallThis();
  75 }
  76 
  77 frame os::current_frame() {
  78   // The only thing that calls this is the stack printing code in
  79   // VMError::report:
  80   //   - Step 110 (printing stack bounds) uses the sp in the frame
  81   //     to determine the amount of free space on the stack.  We
  82   //     set the sp to a close approximation of the real value in
  83   //     order to allow this step to complete.
  84   //   - Step 120 (printing native stack) tries to walk the stack.
  85   //     The frame we create has a NULL pc, which is ignored as an
  86   //     invalid frame.




  41 #include "mutex_bsd.inline.hpp"
  42 #include "nativeInst_zero.hpp"
  43 #include "os_share_bsd.hpp"
  44 #include "prims/jniFastGetField.hpp"
  45 #include "prims/jvm.h"
  46 #include "prims/jvm_misc.hpp"
  47 #include "runtime/arguments.hpp"
  48 #include "runtime/extendedPC.hpp"
  49 #include "runtime/frame.inline.hpp"
  50 #include "runtime/interfaceSupport.hpp"
  51 #include "runtime/java.hpp"
  52 #include "runtime/javaCalls.hpp"
  53 #include "runtime/mutexLocker.hpp"
  54 #include "runtime/osThread.hpp"
  55 #include "runtime/sharedRuntime.hpp"
  56 #include "runtime/stubRoutines.hpp"
  57 #include "runtime/timer.hpp"
  58 #include "thread_bsd.inline.hpp"
  59 #include "utilities/events.hpp"
  60 #include "utilities/vmError.hpp"






  61 
  62 address os::current_stack_pointer() {
  63   address dummy = (address) &dummy;
  64   return dummy;
  65 }
  66 
  67 frame os::get_sender_for_C_frame(frame* fr) {
  68   ShouldNotCallThis();
  69 }
  70 
  71 frame os::current_frame() {
  72   // The only thing that calls this is the stack printing code in
  73   // VMError::report:
  74   //   - Step 110 (printing stack bounds) uses the sp in the frame
  75   //     to determine the amount of free space on the stack.  We
  76   //     set the sp to a close approximation of the real value in
  77   //     order to allow this step to complete.
  78   //   - Step 120 (printing native stack) tries to walk the stack.
  79   //     The frame we create has a NULL pc, which is ignored as an
  80   //     invalid frame.