mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
Merge
This commit is contained in:
commit
615777b6da
2482 changed files with 117959 additions and 31338 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 1997-2007 Sun Microsystems, Inc. All Rights Reserved.
|
||||
* Copyright 1997-2008 Sun Microsystems, Inc. All Rights Reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -2599,7 +2599,8 @@ void JavaThread::prepare(jobject jni_thread, ThreadPriority prio) {
|
|||
oop JavaThread::current_park_blocker() {
|
||||
// Support for JSR-166 locks
|
||||
oop thread_oop = threadObj();
|
||||
if (thread_oop != NULL && JDK_Version::supports_thread_park_blocker()) {
|
||||
if (thread_oop != NULL &&
|
||||
JDK_Version::current().supports_thread_park_blocker()) {
|
||||
return java_lang_Thread::park_blocker(thread_oop);
|
||||
}
|
||||
return NULL;
|
||||
|
@ -2782,6 +2783,8 @@ void Threads::threads_do(ThreadClosure* tc) {
|
|||
|
||||
jint Threads::create_vm(JavaVMInitArgs* args, bool* canTryAgain) {
|
||||
|
||||
extern void JDK_Version_init();
|
||||
|
||||
// Check version
|
||||
if (!is_supported_jni_version(args->version)) return JNI_EVERSION;
|
||||
|
||||
|
@ -2797,6 +2800,9 @@ jint Threads::create_vm(JavaVMInitArgs* args, bool* canTryAgain) {
|
|||
// Initialize system properties.
|
||||
Arguments::init_system_properties();
|
||||
|
||||
// So that JDK version can be used as a discrimintor when parsing arguments
|
||||
JDK_Version_init();
|
||||
|
||||
// Parse arguments
|
||||
jint parse_result = Arguments::parse(args);
|
||||
if (parse_result != JNI_OK) return parse_result;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue