src/hotspot/share/code/nmethod.cpp
changeset 55562 2f464d628942
parent 55499 1887e16a5657
child 57490 7826a2a06f87
equal deleted inserted replaced
55561:4c0a7916d3cd 55562:2f464d628942
  1772     guarantee(unload_nmethod_caches(unloading_occurred),
  1772     guarantee(unload_nmethod_caches(unloading_occurred),
  1773               "Should not need transition stubs");
  1773               "Should not need transition stubs");
  1774   }
  1774   }
  1775 }
  1775 }
  1776 
  1776 
  1777 void nmethod::oops_do(OopClosure* f, bool allow_zombie) {
  1777 void nmethod::oops_do(OopClosure* f, bool allow_dead) {
  1778   // make sure the oops ready to receive visitors
  1778   // make sure the oops ready to receive visitors
  1779   assert(allow_zombie || !is_zombie(), "should not call follow on zombie nmethod");
  1779   assert(allow_dead || is_alive(), "should not call follow on dead nmethod");
  1780   assert(!is_unloaded(), "should not call follow on unloaded nmethod");
       
  1781 
  1780 
  1782   // Prevent extra code cache walk for platforms that don't have immediate oops.
  1781   // Prevent extra code cache walk for platforms that don't have immediate oops.
  1783   if (relocInfo::mustIterateImmediateOopsInCode()) {
  1782   if (relocInfo::mustIterateImmediateOopsInCode()) {
  1784     RelocIterator iter(this, oops_reloc_begin());
  1783     RelocIterator iter(this, oops_reloc_begin());
  1785 
  1784