src/os/windows/vm/os_windows.inline.hpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File 8038633 Sdiff src/os/windows/vm

src/os/windows/vm/os_windows.inline.hpp

Print this page
rev 6204 : 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


  94 inline size_t os::read(int fd, void *buf, unsigned int nBytes) {
  95   return ::read(fd, buf, nBytes);
  96 }
  97 
  98 inline size_t os::restartable_read(int fd, void *buf, unsigned int nBytes) {
  99   return ::read(fd, buf, nBytes);
 100 }
 101 
 102 inline size_t os::write(int fd, const void *buf, unsigned int nBytes) {
 103   return ::write(fd, buf, nBytes);
 104 }
 105 
 106 inline int os::close(int fd) {
 107   return ::close(fd);
 108 }
 109 
 110 inline bool os::supports_monotonic_clock() {
 111   return win32::_has_performance_count;
 112 }
 113 
 114 #ifndef PRODUCT
 115   #define CALL_TEST_FUNC_WITH_WRAPPER_IF_NEEDED(f) \
 116             os::win32::call_test_func_with_wrapper(f)
 117 #endif
 118 
 119 #endif // OS_WINDOWS_VM_OS_WINDOWS_INLINE_HPP


  94 inline size_t os::read(int fd, void *buf, unsigned int nBytes) {
  95   return ::read(fd, buf, nBytes);
  96 }
  97 
  98 inline size_t os::restartable_read(int fd, void *buf, unsigned int nBytes) {
  99   return ::read(fd, buf, nBytes);
 100 }
 101 
 102 inline size_t os::write(int fd, const void *buf, unsigned int nBytes) {
 103   return ::write(fd, buf, nBytes);
 104 }
 105 
 106 inline int os::close(int fd) {
 107   return ::close(fd);
 108 }
 109 
 110 inline bool os::supports_monotonic_clock() {
 111   return win32::_has_performance_count;
 112 }
 113 
 114 #define CALL_TEST_FUNC_WITH_WRAPPER_IF_NEEDED(f) \

 115         os::win32::call_test_func_with_wrapper(f)

 116 
 117 #endif // OS_WINDOWS_VM_OS_WINDOWS_INLINE_HPP
src/os/windows/vm/os_windows.inline.hpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File