src/hotspot/os/windows/os_windows.cpp
changeset 58654 562bf1878089
parent 58548 430b9a492a05
child 58679 9c3209ff7550
child 58813 67009d58dd70
equal deleted inserted replaced
58653:71fef5fae9cc 58654:562bf1878089
   824   __try {
   824   __try {
   825     RaiseException (MS_VC_EXCEPTION, 0, sizeof(info)/sizeof(DWORD), (const ULONG_PTR*)&info );
   825     RaiseException (MS_VC_EXCEPTION, 0, sizeof(info)/sizeof(DWORD), (const ULONG_PTR*)&info );
   826   } __except(EXCEPTION_EXECUTE_HANDLER) {}
   826   } __except(EXCEPTION_EXECUTE_HANDLER) {}
   827 }
   827 }
   828 
   828 
   829 bool os::distribute_processes(uint length, uint* distribution) {
       
   830   // Not yet implemented.
       
   831   return false;
       
   832 }
       
   833 
       
   834 bool os::bind_to_processor(uint processor_id) {
   829 bool os::bind_to_processor(uint processor_id) {
   835   // Not yet implemented.
   830   // Not yet implemented.
   836   return false;
   831   return false;
   837 }
   832 }
   838 
   833 
   909   result.dwLowDateTime  = low(a);
   904   result.dwLowDateTime  = low(a);
   910   return result;
   905   return result;
   911 }
   906 }
   912 
   907 
   913 bool os::supports_vtime() { return true; }
   908 bool os::supports_vtime() { return true; }
   914 bool os::enable_vtime() { return false; }
       
   915 bool os::vtime_enabled() { return false; }
       
   916 
   909 
   917 double os::elapsedVTime() {
   910 double os::elapsedVTime() {
   918   FILETIME created;
   911   FILETIME created;
   919   FILETIME exited;
   912   FILETIME exited;
   920   FILETIME kernel;
   913   FILETIME kernel;
  3902   _setmode(_fileno(stdin), _O_BINARY);
  3895   _setmode(_fileno(stdin), _O_BINARY);
  3903   _setmode(_fileno(stdout), _O_BINARY);
  3896   _setmode(_fileno(stdout), _O_BINARY);
  3904   _setmode(_fileno(stderr), _O_BINARY);
  3897   _setmode(_fileno(stderr), _O_BINARY);
  3905 }
  3898 }
  3906 
  3899 
  3907 
       
  3908 bool os::is_debugger_attached() {
       
  3909   return IsDebuggerPresent() ? true : false;
       
  3910 }
       
  3911 
       
  3912 
       
  3913 void os::wait_for_keypress_at_exit(void) {
  3900 void os::wait_for_keypress_at_exit(void) {
  3914   if (PauseAtExit) {
  3901   if (PauseAtExit) {
  3915     fprintf(stderr, "Press any key to continue...\n");
  3902     fprintf(stderr, "Press any key to continue...\n");
  3916     fgetc(stdin);
  3903     fgetc(stdin);
  3917   }
  3904   }