< prev index next >
src/hotspot/share/runtime/vm_version.hpp
Print this page
*** 27,44 ****
#include "memory/allocation.hpp"
#include "utilities/ostream.hpp"
#include "utilities/macros.hpp"
- typedef enum {
- NoDetectedVirtualization,
- XenHVM,
- KVM,
- VMWare,
- HyperV
- } VirtualizationType;
-
// VM_Version provides information about the VM.
class Abstract_VM_Version: AllStatic {
friend class VMStructs;
friend class JVMCIVMStructs;
--- 27,36 ----
*** 63,74 ****
static int _vm_minor_version;
static int _vm_security_version;
static int _vm_patch_version;
static int _vm_build_number;
- static VirtualizationType _detected_virtualization;
-
public:
// Called as part of the runtime services initialization which is
// called from the management module initialization (via init_globals())
// after argument parsing and attaching of the main thread has
// occurred. Examines a variety of the hardware capabilities of
--- 55,64 ----
*** 119,136 ****
static const char* features_string() {
return _features_string;
}
- static VirtualizationType get_detected_virtualization() {
- return _detected_virtualization;
- }
-
- // platforms that need to specialize this
- // define VM_Version::print_platform_virtualization_info()
- static void print_platform_virtualization_info(outputStream*) { }
-
// does HW support an 8-byte compare-exchange operation?
static bool supports_cx8() {
#ifdef SUPPORTS_NATIVE_CX8
return true;
#else
--- 109,118 ----
*** 165,176 ****
// a large number of cores.
static uint parallel_worker_threads_denominator() { return 8; }
// Does this CPU support spin wait instruction?
static bool supports_on_spin_wait() { return false; }
-
- static bool print_matching_lines_from_file(const char* filename, outputStream* st, const char* keywords_to_match[]);
};
#include CPU_HEADER(vm_version)
#endif // SHARE_RUNTIME_VM_VERSION_HPP
--- 147,156 ----
< prev index next >