hotspot/src/os/solaris/vm/os_solaris.cpp
changeset 11961 0abd4cd26e5a
parent 11719 24a1d0e00c7e
child 12735 3e2e491f4f69
equal deleted inserted replaced
11960:57898a1b4b44 11961:0abd4cd26e5a
  1009   return false;
  1009   return false;
  1010 }
  1010 }
  1011 
  1011 
  1012 extern "C" void breakpoint() {
  1012 extern "C" void breakpoint() {
  1013   // use debugger to set breakpoint here
  1013   // use debugger to set breakpoint here
  1014 }
       
  1015 
       
  1016 // Returns an estimate of the current stack pointer. Result must be guaranteed to
       
  1017 // point into the calling threads stack, and be no lower than the current stack
       
  1018 // pointer.
       
  1019 address os::current_stack_pointer() {
       
  1020   volatile int dummy;
       
  1021   address sp = (address)&dummy + 8;     // %%%% need to confirm if this is right
       
  1022   return sp;
       
  1023 }
  1014 }
  1024 
  1015 
  1025 static thread_t main_thread;
  1016 static thread_t main_thread;
  1026 
  1017 
  1027 // Thread start routine for all new Java threads
  1018 // Thread start routine for all new Java threads