src/share/vm/code/nmethod.cpp

changeset 9286
2c4cecfa5ce5
parent 8734
c73c5d205d0a
child 9291
a2c8195708cc
     1.1 --- a/src/share/vm/code/nmethod.cpp	Tue Apr 08 09:51:25 2014 +0200
     1.2 +++ b/src/share/vm/code/nmethod.cpp	Mon Jan 08 08:32:04 2018 -0800
     1.3 @@ -2173,7 +2173,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 @@ -2199,7 +2199,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