comparison src/os/windows/vm/os_windows.cpp @ 17829:0118c8c7b80f

8038633: crash in VM_Version::get_processor_features() on startup Summary: Windows need an exception wrapper around getPsrInfo_stub() call in order to properly handle SEGV for YMM registers test. Reviewed-by: iveresov, iignatyev
author kvn
date Mon, 31 Mar 2014 13:08:03 -0700
parents 98af1e198e73
children 364b73402247 ce8f6bb717c9
comparison
equal deleted inserted replaced
17828:8a84bedf7173 17829:0118c8c7b80f
2714 } 2714 }
2715 return (address)-1; 2715 return (address)-1;
2716 } 2716 }
2717 #endif 2717 #endif
2718 2718
2719 #ifndef PRODUCT
2720 void os::win32::call_test_func_with_wrapper(void (*funcPtr)(void)) { 2719 void os::win32::call_test_func_with_wrapper(void (*funcPtr)(void)) {
2721 // Install a win32 structured exception handler around the test 2720 // Install a win32 structured exception handler around the test
2722 // function call so the VM can generate an error dump if needed. 2721 // function call so the VM can generate an error dump if needed.
2723 __try { 2722 __try {
2724 (*funcPtr)(); 2723 (*funcPtr)();
2725 } __except(topLevelExceptionFilter( 2724 } __except(topLevelExceptionFilter(
2726 (_EXCEPTION_POINTERS*)_exception_info())) { 2725 (_EXCEPTION_POINTERS*)_exception_info())) {
2727 // Nothing to do. 2726 // Nothing to do.
2728 } 2727 }
2729 } 2728 }
2730 #endif
2731 2729
2732 // Virtual Memory 2730 // Virtual Memory
2733 2731
2734 int os::vm_page_size() { return os::win32::vm_page_size(); } 2732 int os::vm_page_size() { return os::win32::vm_page_size(); }
2735 int os::vm_allocation_granularity() { 2733 int os::vm_allocation_granularity() {