7011865: JSR 292 CTW fails: !THREAD->is_Compiler_thread() failed: Can not load classes with the Compiler thre

Thu, 17 Mar 2011 18:29:18 -0700

author
jrose
date
Thu, 17 Mar 2011 18:29:18 -0700
changeset 2641
d2134498fd3f
parent 2640
82de9bd880e3
child 2642
fc5ebbb2d1a8

7011865: JSR 292 CTW fails: !THREAD->is_Compiler_thread() failed: Can not load classes with the Compiler thre
Reviewed-by: kvn, never

src/share/vm/interpreter/linkResolver.cpp file | annotate | diff | comparison | revisions
     1.1 --- a/src/share/vm/interpreter/linkResolver.cpp	Thu Mar 17 12:08:01 2011 -0700
     1.2 +++ b/src/share/vm/interpreter/linkResolver.cpp	Thu Mar 17 18:29:18 2011 -0700
     1.3 @@ -217,7 +217,7 @@
     1.4    if (EnableMethodHandles &&
     1.5        klass() == SystemDictionary::MethodHandle_klass() &&
     1.6        methodOopDesc::is_method_handle_invoke_name(name)) {
     1.7 -    if (!MethodHandles::enabled()) {
     1.8 +    if (!THREAD->is_Compiler_thread() && !MethodHandles::enabled()) {
     1.9        // Make sure the Java part of the runtime has been booted up.
    1.10        klassOop natives = SystemDictionary::MethodHandleNatives_klass();
    1.11        if (natives == NULL || instanceKlass::cast(natives)->is_not_initialized()) {

mercurial