hotspot/src/share/vm/code/nmethod.cpp
changeset 26563 d6561f9d04f2
parent 26558 b7df27df6384
child 26705 fca1785e7084
equal deleted inserted replaced
26562:c2e144c5b6a2 26563:d6561f9d04f2
  2085   for (Metadata** p = metadata_begin(); p < metadata_end(); p++) {
  2085   for (Metadata** p = metadata_begin(); p < metadata_end(); p++) {
  2086     if (*p == Universe::non_oop_word() || *p == NULL)  continue;  // skip non-oops
  2086     if (*p == Universe::non_oop_word() || *p == NULL)  continue;  // skip non-oops
  2087     Metadata* md = *p;
  2087     Metadata* md = *p;
  2088     f(md);
  2088     f(md);
  2089   }
  2089   }
       
  2090 
       
  2091   // Call function Method*, not embedded in these other places.
       
  2092   if (_method != NULL) f(_method);
  2090 }
  2093 }
  2091 
  2094 
  2092 void nmethod::oops_do(OopClosure* f, bool allow_zombie) {
  2095 void nmethod::oops_do(OopClosure* f, bool allow_zombie) {
  2093   // make sure the oops ready to receive visitors
  2096   // make sure the oops ready to receive visitors
  2094   assert(allow_zombie || !is_zombie(), "should not call follow on zombie nmethod");
  2097   assert(allow_zombie || !is_zombie(), "should not call follow on zombie nmethod");