47 static int _vm_minor_version;
48 static int _vm_micro_version;
49 static int _vm_build_number;
50 static bool _initialized;
51 static unsigned int _parallel_worker_threads;
52 static bool _parallel_worker_threads_initialized;
53 static int _reserve_for_allocation_prefetch;
54
55 static unsigned int nof_parallel_worker_threads(unsigned int num,
56 unsigned int dem,
57 unsigned int switch_pt);
58 public:
59 static void initialize();
60
61 // This allows for early initialization of VM_Version information
62 // that may be needed later in the initialization sequence but before
63 // full VM_Version initialization is possible. It can not depend on any
64 // other part of the VM being initialized when called. Platforms that
65 // need to specialize this define VM_Version::early_initialize().
66 static void early_initialize() { }
67
68 // Name
69 static const char* vm_name();
70 // Vendor
71 static const char* vm_vendor();
72 // VM version information string printed by launcher (java -version)
73 static const char* vm_info_string();
74 static const char* vm_release();
75 static const char* vm_platform_string();
76 static const char* vm_build_user();
77
78 static int vm_major_version() { assert(_initialized, "not initialized"); return _vm_major_version; }
79 static int vm_minor_version() { assert(_initialized, "not initialized"); return _vm_minor_version; }
80 static int vm_micro_version() { assert(_initialized, "not initialized"); return _vm_micro_version; }
81 static int vm_build_number() { assert(_initialized, "not initialized"); return _vm_build_number; }
82
83 // Gets the jvm_version_info.jvm_version defined in jvm.h
84 static unsigned int jvm_version();
85
86 // Internal version providing additional build information
|
47 static int _vm_minor_version;
48 static int _vm_micro_version;
49 static int _vm_build_number;
50 static bool _initialized;
51 static unsigned int _parallel_worker_threads;
52 static bool _parallel_worker_threads_initialized;
53 static int _reserve_for_allocation_prefetch;
54
55 static unsigned int nof_parallel_worker_threads(unsigned int num,
56 unsigned int dem,
57 unsigned int switch_pt);
58 public:
59 static void initialize();
60
61 // This allows for early initialization of VM_Version information
62 // that may be needed later in the initialization sequence but before
63 // full VM_Version initialization is possible. It can not depend on any
64 // other part of the VM being initialized when called. Platforms that
65 // need to specialize this define VM_Version::early_initialize().
66 static void early_initialize() { }
67 // Called to initialize VM variables needing initialization
68 // after command line parsing
69 static void vm_init_before_ergo(void) {}
70
71 // Name
72 static const char* vm_name();
73 // Vendor
74 static const char* vm_vendor();
75 // VM version information string printed by launcher (java -version)
76 static const char* vm_info_string();
77 static const char* vm_release();
78 static const char* vm_platform_string();
79 static const char* vm_build_user();
80
81 static int vm_major_version() { assert(_initialized, "not initialized"); return _vm_major_version; }
82 static int vm_minor_version() { assert(_initialized, "not initialized"); return _vm_minor_version; }
83 static int vm_micro_version() { assert(_initialized, "not initialized"); return _vm_micro_version; }
84 static int vm_build_number() { assert(_initialized, "not initialized"); return _vm_build_number; }
85
86 // Gets the jvm_version_info.jvm_version defined in jvm.h
87 static unsigned int jvm_version();
88
89 // Internal version providing additional build information
|