src/share/vm/code/nmethod.cpp

changeset 9291
a2c8195708cc
parent 8997
f8a45a60bc6b
parent 9286
2c4cecfa5ce5
child 9327
f96fcd9e1e1b
     1.1 --- a/src/share/vm/code/nmethod.cpp	Mon Jan 22 11:11:36 2018 -0800
     1.2 +++ b/src/share/vm/code/nmethod.cpp	Wed Feb 07 10:45:15 2018 -0800
     1.3 @@ -2172,7 +2172,7 @@
     1.4                 "metadata must be found in exactly one place");
     1.5          if (r->metadata_is_immediate() && r->metadata_value() != NULL) {
     1.6            Metadata* md = r->metadata_value();
     1.7 -          f(md);
     1.8 +          if (md != _method) f(md);
     1.9          }
    1.10        } else if (iter.type() == relocInfo::virtual_call_type) {
    1.11          // Check compiledIC holders associated with this nmethod
    1.12 @@ -2198,7 +2198,7 @@
    1.13      f(md);
    1.14    }
    1.15  
    1.16 -  // Visit metadata not embedded in the other places.
    1.17 +  // Call function Method*, not embedded in these other places.
    1.18    if (_method != NULL) f(_method);
    1.19  }
    1.20  

mercurial