mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 14:24:46 +02:00
8087202: Add support for PATCH field and remove unused fields of new version string
Reviewed-by: dholmes, alanb
This commit is contained in:
parent
23dd2e12b1
commit
ab8dd89e95
18 changed files with 65 additions and 189 deletions
|
@ -349,37 +349,6 @@ void Universe::genesis(TRAPS) {
|
|||
// Have already been initialized.
|
||||
_objectArrayKlassObj->append_to_sibling_list();
|
||||
|
||||
// Compute is_jdk version flags.
|
||||
// Only 1.3 or later has the java.lang.Shutdown class.
|
||||
// Only 1.4 or later has the java.lang.CharSequence interface.
|
||||
// Only 1.5 or later has the java.lang.management.MemoryUsage class.
|
||||
if (JDK_Version::is_partially_initialized()) {
|
||||
uint8_t jdk_version;
|
||||
Klass* k = SystemDictionary::resolve_or_null(
|
||||
vmSymbols::java_lang_management_MemoryUsage(), THREAD);
|
||||
CLEAR_PENDING_EXCEPTION; // ignore exceptions
|
||||
if (k == NULL) {
|
||||
k = SystemDictionary::resolve_or_null(
|
||||
vmSymbols::java_lang_CharSequence(), THREAD);
|
||||
CLEAR_PENDING_EXCEPTION; // ignore exceptions
|
||||
if (k == NULL) {
|
||||
k = SystemDictionary::resolve_or_null(
|
||||
vmSymbols::java_lang_Shutdown(), THREAD);
|
||||
CLEAR_PENDING_EXCEPTION; // ignore exceptions
|
||||
if (k == NULL) {
|
||||
jdk_version = 2;
|
||||
} else {
|
||||
jdk_version = 3;
|
||||
}
|
||||
} else {
|
||||
jdk_version = 4;
|
||||
}
|
||||
} else {
|
||||
jdk_version = 5;
|
||||
}
|
||||
JDK_Version::fully_initialize(jdk_version);
|
||||
}
|
||||
|
||||
#ifdef ASSERT
|
||||
if (FullGCALot) {
|
||||
// Allocate an array of dummy objects.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue