src/share/vm/runtime/vm_version.hpp

changeset 4106
7eca5de9e0b6
parent 3517
c77d473e71f7
child 4153
b9a9ed0f8eeb
equal deleted inserted replaced
4105:8ae8f9dd7099 4106:7eca5de9e0b6
35 friend class VMStructs; 35 friend class VMStructs;
36 static const char* _s_vm_release; 36 static const char* _s_vm_release;
37 static const char* _s_internal_vm_info_string; 37 static const char* _s_internal_vm_info_string;
38 // These are set by machine-dependent initializations 38 // These are set by machine-dependent initializations
39 static bool _supports_cx8; 39 static bool _supports_cx8;
40 static bool _supports_atomic_getset4;
41 static bool _supports_atomic_getset8;
42 static bool _supports_atomic_getadd4;
43 static bool _supports_atomic_getadd8;
40 static unsigned int _logical_processors_per_package; 44 static unsigned int _logical_processors_per_package;
41 static int _vm_major_version; 45 static int _vm_major_version;
42 static int _vm_minor_version; 46 static int _vm_minor_version;
43 static int _vm_build_number; 47 static int _vm_build_number;
44 static bool _initialized; 48 static bool _initialized;
73 static const char* internal_vm_info_string(); 77 static const char* internal_vm_info_string();
74 static const char* jre_release_version(); 78 static const char* jre_release_version();
75 79
76 // does HW support an 8-byte compare-exchange operation? 80 // does HW support an 8-byte compare-exchange operation?
77 static bool supports_cx8() {return _supports_cx8;} 81 static bool supports_cx8() {return _supports_cx8;}
82 // does HW support atomic get-and-set or atomic get-and-add? Used
83 // to guide intrinsification decisions for Unsafe atomic ops
84 static bool supports_atomic_getset4() {return _supports_atomic_getset4;}
85 static bool supports_atomic_getset8() {return _supports_atomic_getset8;}
86 static bool supports_atomic_getadd4() {return _supports_atomic_getadd4;}
87 static bool supports_atomic_getadd8() {return _supports_atomic_getadd8;}
88
78 static unsigned int logical_processors_per_package() { 89 static unsigned int logical_processors_per_package() {
79 return _logical_processors_per_package; 90 return _logical_processors_per_package;
80 } 91 }
81 92
82 // Need a space at the end of TLAB for prefetch instructions 93 // Need a space at the end of TLAB for prefetch instructions

mercurial