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