hotspot/src/os/windows/vm/os_windows.cpp
changeset 23527 397b6816032d
parent 23487 0f7e268cd9e3
child 23868 ac74f81a5157
equal deleted inserted replaced
23526:6851d341ad52 23527:397b6816032d
  2700   }
  2700   }
  2701   return (address)-1;
  2701   return (address)-1;
  2702 }
  2702 }
  2703 #endif
  2703 #endif
  2704 
  2704 
  2705 #ifndef PRODUCT
       
  2706 void os::win32::call_test_func_with_wrapper(void (*funcPtr)(void)) {
  2705 void os::win32::call_test_func_with_wrapper(void (*funcPtr)(void)) {
  2707   // Install a win32 structured exception handler around the test
  2706   // Install a win32 structured exception handler around the test
  2708   // function call so the VM can generate an error dump if needed.
  2707   // function call so the VM can generate an error dump if needed.
  2709   __try {
  2708   __try {
  2710     (*funcPtr)();
  2709     (*funcPtr)();
  2711   } __except(topLevelExceptionFilter(
  2710   } __except(topLevelExceptionFilter(
  2712              (_EXCEPTION_POINTERS*)_exception_info())) {
  2711              (_EXCEPTION_POINTERS*)_exception_info())) {
  2713     // Nothing to do.
  2712     // Nothing to do.
  2714   }
  2713   }
  2715 }
  2714 }
  2716 #endif
       
  2717 
  2715 
  2718 // Virtual Memory
  2716 // Virtual Memory
  2719 
  2717 
  2720 int os::vm_page_size() { return os::win32::vm_page_size(); }
  2718 int os::vm_page_size() { return os::win32::vm_page_size(); }
  2721 int os::vm_allocation_granularity() {
  2719 int os::vm_allocation_granularity() {