equal
deleted
inserted
replaced
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 |