mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 11:34:38 +02:00
7011865: JSR 292 CTW fails: !THREAD->is_Compiler_thread() failed: Can not load classes with the Compiler thre
Reviewed-by: kvn, never
This commit is contained in:
parent
998b726ce7
commit
e197657e02
1 changed files with 1 additions and 1 deletions
|
@ -217,7 +217,7 @@ void LinkResolver::lookup_implicit_method(methodHandle& result,
|
||||||
if (EnableMethodHandles &&
|
if (EnableMethodHandles &&
|
||||||
klass() == SystemDictionary::MethodHandle_klass() &&
|
klass() == SystemDictionary::MethodHandle_klass() &&
|
||||||
methodOopDesc::is_method_handle_invoke_name(name)) {
|
methodOopDesc::is_method_handle_invoke_name(name)) {
|
||||||
if (!MethodHandles::enabled()) {
|
if (!THREAD->is_Compiler_thread() && !MethodHandles::enabled()) {
|
||||||
// Make sure the Java part of the runtime has been booted up.
|
// Make sure the Java part of the runtime has been booted up.
|
||||||
klassOop natives = SystemDictionary::MethodHandleNatives_klass();
|
klassOop natives = SystemDictionary::MethodHandleNatives_klass();
|
||||||
if (natives == NULL || instanceKlass::cast(natives)->is_not_initialized()) {
|
if (natives == NULL || instanceKlass::cast(natives)->is_not_initialized()) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue