equal
deleted
inserted
replaced
684 |
684 |
685 // Initialization |
685 // Initialization |
686 static void initialize(); |
686 static void initialize(); |
687 |
687 |
688 // Override Abstract_VM_Version implementation |
688 // Override Abstract_VM_Version implementation |
|
689 static void print_platform_virtualization_info(outputStream*); |
|
690 |
|
691 // Override Abstract_VM_Version implementation |
689 static bool use_biased_locking(); |
692 static bool use_biased_locking(); |
690 |
693 |
691 // Asserts |
694 // Asserts |
692 static void assert_is_initialized() { |
695 static void assert_is_initialized() { |
693 assert(_cpuid_info.std_cpuid1_eax.bits.family != 0, "VM_Version not initialized"); |
696 assert(_cpuid_info.std_cpuid1_eax.bits.family != 0, "VM_Version not initialized"); |
928 |
931 |
929 // SSE2 and later processors implement a 'pause' instruction |
932 // SSE2 and later processors implement a 'pause' instruction |
930 // that can be used for efficient implementation of |
933 // that can be used for efficient implementation of |
931 // the intrinsic for java.lang.Thread.onSpinWait() |
934 // the intrinsic for java.lang.Thread.onSpinWait() |
932 static bool supports_on_spin_wait() { return supports_sse2(); } |
935 static bool supports_on_spin_wait() { return supports_sse2(); } |
|
936 |
|
937 // support functions for virtualization detection |
|
938 private: |
|
939 static void check_virt_cpuid(uint32_t idx, uint32_t *regs); |
|
940 static void check_virtualizations(); |
933 }; |
941 }; |
934 |
942 |
935 #endif // CPU_X86_VM_VERSION_X86_HPP |
943 #endif // CPU_X86_VM_VERSION_X86_HPP |