mirror of
https://github.com/openjdk/jdk.git
synced 2026-01-28 03:58:21 +00:00
enable serialize in Windows
This commit is contained in:
parent
fd0a14f264
commit
f89780eea6
@ -27,7 +27,6 @@
|
||||
|
||||
static void setup_fpu();
|
||||
static bool supports_sse();
|
||||
// static bool supports_serialize();
|
||||
static juint cpu_microcode_revision();
|
||||
|
||||
static jlong rdtsc();
|
||||
|
||||
9
src/hotspot/os_cpu/windows_x86/orderAccess_windows_x86.hpp
Normal file → Executable file
9
src/hotspot/os_cpu/windows_x86/orderAccess_windows_x86.hpp
Normal file → Executable file
@ -28,6 +28,7 @@
|
||||
// Included in orderAccess.hpp header file.
|
||||
|
||||
#include <intrin.h>
|
||||
#include <immintrin.h>
|
||||
|
||||
// Compiler version last used for testing: Microsoft Visual Studio 2010
|
||||
// Please update this information when this file changes
|
||||
@ -59,8 +60,12 @@ inline void OrderAccess::fence() {
|
||||
}
|
||||
|
||||
inline void OrderAccess::cross_modify_fence_impl() {
|
||||
int regs[4];
|
||||
__cpuid(regs, 0);
|
||||
if (VM_Version::supports_serialize()) {
|
||||
_serialize();
|
||||
} else {
|
||||
int regs[4];
|
||||
__cpuid(regs, 0);
|
||||
}
|
||||
}
|
||||
|
||||
#endif // OS_CPU_WINDOWS_X86_ORDERACCESS_WINDOWS_X86_HPP
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user