src/os_cpu/linux_zero/vm/os_linux_zero.cpp

Print this page




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




  36 #include "mutex_linux.inline.hpp"
  37 #include "nativeInst_zero.hpp"
  38 #include "os_share_linux.hpp"
  39 #include "prims/jniFastGetField.hpp"
  40 #include "prims/jvm.h"
  41 #include "prims/jvm_misc.hpp"
  42 #include "runtime/arguments.hpp"
  43 #include "runtime/extendedPC.hpp"
  44 #include "runtime/frame.inline.hpp"
  45 #include "runtime/interfaceSupport.hpp"
  46 #include "runtime/java.hpp"
  47 #include "runtime/javaCalls.hpp"
  48 #include "runtime/mutexLocker.hpp"
  49 #include "runtime/osThread.hpp"
  50 #include "runtime/sharedRuntime.hpp"
  51 #include "runtime/stubRoutines.hpp"
  52 #include "runtime/timer.hpp"
  53 #include "thread_linux.inline.hpp"
  54 #include "utilities/events.hpp"
  55 #include "utilities/vmError.hpp"






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