src/hotspot/cpu/x86/vm_version_x86.hpp
changeset 54485 ddc19ea5059c
parent 53826 d3213547a767
child 54519 a2795025f417
equal deleted inserted replaced
54484:72f05350b4b3 54485:ddc19ea5059c
   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