annotate src/share/vm/runtime/java.hpp @ 1972:f95d63e2154a

6989984: Use standard include model for Hospot Summary: Replaced MakeDeps and the includeDB files with more standardized solutions. Reviewed-by: coleenp, kvn, kamg
author stefank
date Tue, 23 Nov 2010 13:22:55 -0800
parents c18cbe5936b8
children 8f8dfba37802
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
a61af66fc99e Initial load
duke
parents:
diff changeset
1 /*
1972
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
2 * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
0
a61af66fc99e Initial load
duke
parents:
diff changeset
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
a61af66fc99e Initial load
duke
parents:
diff changeset
4 *
a61af66fc99e Initial load
duke
parents:
diff changeset
5 * This code is free software; you can redistribute it and/or modify it
a61af66fc99e Initial load
duke
parents:
diff changeset
6 * under the terms of the GNU General Public License version 2 only, as
a61af66fc99e Initial load
duke
parents:
diff changeset
7 * published by the Free Software Foundation.
a61af66fc99e Initial load
duke
parents:
diff changeset
8 *
a61af66fc99e Initial load
duke
parents:
diff changeset
9 * This code is distributed in the hope that it will be useful, but WITHOUT
a61af66fc99e Initial load
duke
parents:
diff changeset
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
a61af66fc99e Initial load
duke
parents:
diff changeset
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
a61af66fc99e Initial load
duke
parents:
diff changeset
12 * version 2 for more details (a copy is included in the LICENSE file that
a61af66fc99e Initial load
duke
parents:
diff changeset
13 * accompanied this code).
a61af66fc99e Initial load
duke
parents:
diff changeset
14 *
a61af66fc99e Initial load
duke
parents:
diff changeset
15 * You should have received a copy of the GNU General Public License version
a61af66fc99e Initial load
duke
parents:
diff changeset
16 * 2 along with this work; if not, write to the Free Software Foundation,
a61af66fc99e Initial load
duke
parents:
diff changeset
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
a61af66fc99e Initial load
duke
parents:
diff changeset
18 *
1552
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 242
diff changeset
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 242
diff changeset
20 * or visit www.oracle.com if you need additional information or have any
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 242
diff changeset
21 * questions.
0
a61af66fc99e Initial load
duke
parents:
diff changeset
22 *
a61af66fc99e Initial load
duke
parents:
diff changeset
23 */
a61af66fc99e Initial load
duke
parents:
diff changeset
24
1972
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
25 #ifndef SHARE_VM_RUNTIME_JAVA_HPP
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
26 #define SHARE_VM_RUNTIME_JAVA_HPP
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
27
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
28 #include "runtime/os.hpp"
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
29
0
a61af66fc99e Initial load
duke
parents:
diff changeset
30 // Register function to be called by before_exit
a61af66fc99e Initial load
duke
parents:
diff changeset
31 extern "C" { void register_on_exit_function(void (*func)(void)) ;}
a61af66fc99e Initial load
duke
parents:
diff changeset
32
a61af66fc99e Initial load
duke
parents:
diff changeset
33 // Execute code before all handles are released and thread is killed; prologue to vm_exit
a61af66fc99e Initial load
duke
parents:
diff changeset
34 extern void before_exit(JavaThread * thread);
a61af66fc99e Initial load
duke
parents:
diff changeset
35
a61af66fc99e Initial load
duke
parents:
diff changeset
36 // Forced VM exit (i.e, internal error or JVM_Exit)
a61af66fc99e Initial load
duke
parents:
diff changeset
37 extern void vm_exit(int code);
a61af66fc99e Initial load
duke
parents:
diff changeset
38
a61af66fc99e Initial load
duke
parents:
diff changeset
39 // Wrapper for ::exit()
a61af66fc99e Initial load
duke
parents:
diff changeset
40 extern void vm_direct_exit(int code);
a61af66fc99e Initial load
duke
parents:
diff changeset
41
a61af66fc99e Initial load
duke
parents:
diff changeset
42 // Shutdown the VM but do not exit the process
a61af66fc99e Initial load
duke
parents:
diff changeset
43 extern void vm_shutdown();
a61af66fc99e Initial load
duke
parents:
diff changeset
44 // Shutdown the VM and abort the process
227
8d852b81e775 6694099: Hotspot vm_exit_out_of_memory should dump core
poonam
parents: 176
diff changeset
45 extern void vm_abort(bool dump_core=true);
0
a61af66fc99e Initial load
duke
parents:
diff changeset
46
a61af66fc99e Initial load
duke
parents:
diff changeset
47 // Trigger any necessary notification of the VM being shutdown
a61af66fc99e Initial load
duke
parents:
diff changeset
48 extern void notify_vm_shutdown();
a61af66fc99e Initial load
duke
parents:
diff changeset
49
a61af66fc99e Initial load
duke
parents:
diff changeset
50 // VM exit if error occurs during initialization of VM
a61af66fc99e Initial load
duke
parents:
diff changeset
51 extern void vm_exit_during_initialization(Handle exception);
a61af66fc99e Initial load
duke
parents:
diff changeset
52 extern void vm_exit_during_initialization(symbolHandle exception_name, const char* message);
a61af66fc99e Initial load
duke
parents:
diff changeset
53 extern void vm_exit_during_initialization(const char* error, const char* message = NULL);
a61af66fc99e Initial load
duke
parents:
diff changeset
54 extern void vm_shutdown_during_initialization(const char* error, const char* message = NULL);
a61af66fc99e Initial load
duke
parents:
diff changeset
55
242
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
56 /**
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
57 * Discovering the JDK_Version during initialization is tricky when the
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
58 * running JDK is less than JDK6. For JDK6 and greater, a "GetVersion"
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
59 * function exists in libjava.so and we simply call it during the
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
60 * 'initialize()' call to find the version. For JDKs with version < 6, no
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
61 * such call exists and we have to probe the JDK in order to determine
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
62 * the exact version. This probing cannot happen during late in
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
63 * the VM initialization process so there's a period of time during
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
64 * initialization when we don't know anything about the JDK version other than
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
65 * that it less than version 6. This is the "partially initialized" time,
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
66 * when we can answer only certain version queries (such as, is the JDK
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
67 * version greater than 5? Answer: no). Once the JDK probing occurs, we
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
68 * know the version and are considered fully initialized.
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
69 */
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
70 class JDK_Version VALUE_OBJ_CLASS_SPEC {
0
a61af66fc99e Initial load
duke
parents:
diff changeset
71 friend class VMStructs;
242
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
72 friend class Universe;
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
73 friend void JDK_Version_init();
0
a61af66fc99e Initial load
duke
parents:
diff changeset
74 private:
242
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
75
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
76 static JDK_Version _current;
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
77
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
78 // In this class, we promote the minor version of release to be the
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
79 // major version for releases >= 5 in anticipation of the JDK doing the
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
80 // same thing. For example, we represent "1.5.0" as major version 5 (we
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
81 // drop the leading 1 and use 5 as the 'major').
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
82
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
83 uint8_t _major;
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
84 uint8_t _minor;
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
85 uint8_t _micro;
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
86 uint8_t _update;
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
87 uint8_t _special;
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
88 uint8_t _build;
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
89
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
90 // If partially initialized, the above fields are invalid and we know
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
91 // that we're less than major version 6.
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
92 bool _partially_initialized;
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
93
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
94 bool _thread_park_blocker;
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
95
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
96 bool is_valid() const {
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
97 return (_major != 0 || _partially_initialized);
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
98 }
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
99
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
100 // initializes or partially initializes the _current static field
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
101 static void initialize();
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
102
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
103 // Completes initialization for a pre-JDK6 version.
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
104 static void fully_initialize(uint8_t major, uint8_t minor = 0,
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
105 uint8_t micro = 0, uint8_t update = 0);
0
a61af66fc99e Initial load
duke
parents:
diff changeset
106
a61af66fc99e Initial load
duke
parents:
diff changeset
107 public:
242
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
108
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
109 // Returns true if the the current version has only been partially initialized
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
110 static bool is_partially_initialized() {
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
111 return _current._partially_initialized;
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
112 }
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
113
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
114 JDK_Version() : _major(0), _minor(0), _micro(0), _update(0),
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
115 _special(0), _build(0), _partially_initialized(false),
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
116 _thread_park_blocker(false) {}
0
a61af66fc99e Initial load
duke
parents:
diff changeset
117
242
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
118 JDK_Version(uint8_t major, uint8_t minor = 0, uint8_t micro = 0,
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
119 uint8_t update = 0, uint8_t special = 0, uint8_t build = 0,
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
120 bool thread_park_blocker = false) :
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
121 _major(major), _minor(minor), _micro(micro), _update(update),
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
122 _special(special), _build(build), _partially_initialized(false),
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
123 _thread_park_blocker(thread_park_blocker) {}
176
6b648fefb395 6705523: Fix for 6695506 will violate spec when used in JDK6
kamg
parents: 0
diff changeset
124
242
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
125 // Returns the current running JDK version
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
126 static JDK_Version current() { return _current; }
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
127
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
128 // Factory methods for convenience
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
129 static JDK_Version jdk(uint8_t m) {
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
130 return JDK_Version(m);
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
131 }
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
132
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
133 static JDK_Version jdk_update(uint8_t major, uint8_t update_number) {
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
134 return JDK_Version(major, 0, 0, update_number);
176
6b648fefb395 6705523: Fix for 6695506 will violate spec when used in JDK6
kamg
parents: 0
diff changeset
135 }
6b648fefb395 6705523: Fix for 6695506 will violate spec when used in JDK6
kamg
parents: 0
diff changeset
136
242
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
137 uint8_t major_version() const { return _major; }
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
138 uint8_t minor_version() const { return _minor; }
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
139 uint8_t micro_version() const { return _micro; }
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
140 uint8_t update_version() const { return _update; }
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
141 uint8_t special_update_version() const { return _special; }
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
142 uint8_t build_number() const { return _build; }
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
143
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
144 bool supports_thread_park_blocker() const {
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
145 return _thread_park_blocker;
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
146 }
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
147
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
148 // Performs a full ordering comparison using all fields (update, build, etc.)
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
149 int compare(const JDK_Version& other) const;
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
150
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
151 /**
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
152 * Performs comparison using only the major version, returning negative
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
153 * if the major version of 'this' is less than the parameter, 0 if it is
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
154 * equal, and a positive value if it is greater.
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
155 */
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
156 int compare_major(int version) const {
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
157 if (_partially_initialized) {
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
158 if (version >= 6) {
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
159 return -1;
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
160 } else {
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
161 assert(false, "Can't make this comparison during init time");
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
162 return -1; // conservative
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
163 }
176
6b648fefb395 6705523: Fix for 6695506 will violate spec when used in JDK6
kamg
parents: 0
diff changeset
164 } else {
242
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
165 return major_version() - version;
176
6b648fefb395 6705523: Fix for 6695506 will violate spec when used in JDK6
kamg
parents: 0
diff changeset
166 }
6b648fefb395 6705523: Fix for 6695506 will violate spec when used in JDK6
kamg
parents: 0
diff changeset
167 }
0
a61af66fc99e Initial load
duke
parents:
diff changeset
168
242
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
169 void to_string(char* buffer, size_t buflen) const;
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
170
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
171 // Convenience methods for queries on the current major/minor version
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
172 static bool is_jdk12x_version() {
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
173 return current().compare_major(2) == 0;
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
174 }
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
175
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
176 static bool is_jdk13x_version() {
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
177 return current().compare_major(3) == 0;
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
178 }
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
179
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
180 static bool is_jdk14x_version() {
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
181 return current().compare_major(4) == 0;
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
182 }
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
183
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
184 static bool is_jdk15x_version() {
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
185 return current().compare_major(5) == 0;
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
186 }
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
187
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
188 static bool is_jdk16x_version() {
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
189 return current().compare_major(6) == 0;
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
190 }
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
191
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
192 static bool is_jdk17x_version() {
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
193 return current().compare_major(7) == 0;
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
194 }
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
195
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
196 static bool is_gte_jdk13x_version() {
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
197 return current().compare_major(3) >= 0;
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
198 }
0
a61af66fc99e Initial load
duke
parents:
diff changeset
199
a61af66fc99e Initial load
duke
parents:
diff changeset
200 static bool is_gte_jdk14x_version() {
242
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
201 return current().compare_major(4) >= 0;
0
a61af66fc99e Initial load
duke
parents:
diff changeset
202 }
242
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
203
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
204 static bool is_gte_jdk15x_version() {
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
205 return current().compare_major(5) >= 0;
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
206 }
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
207
0
a61af66fc99e Initial load
duke
parents:
diff changeset
208 static bool is_gte_jdk16x_version() {
242
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
209 return current().compare_major(6) >= 0;
0
a61af66fc99e Initial load
duke
parents:
diff changeset
210 }
a61af66fc99e Initial load
duke
parents:
diff changeset
211
a61af66fc99e Initial load
duke
parents:
diff changeset
212 static bool is_gte_jdk17x_version() {
242
d95b224e9f17 6721093: -XX:AppendRatio=N not supported
kamg
parents: 235
diff changeset
213 return current().compare_major(7) >= 0;
0
a61af66fc99e Initial load
duke
parents:
diff changeset
214 }
a61af66fc99e Initial load
duke
parents:
diff changeset
215 };
1972
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
216
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
217 #endif // SHARE_VM_RUNTIME_JAVA_HPP