1149 } |
1149 } |
1150 |
1150 |
1151 // Clear ICStubs of all compiled ICs |
1151 // Clear ICStubs of all compiled ICs |
1152 void nmethod::clear_ic_stubs() { |
1152 void nmethod::clear_ic_stubs() { |
1153 assert_locked_or_safepoint(CompiledIC_lock); |
1153 assert_locked_or_safepoint(CompiledIC_lock); |
|
1154 ResourceMark rm; |
1154 RelocIterator iter(this); |
1155 RelocIterator iter(this); |
1155 while(iter.next()) { |
1156 while(iter.next()) { |
1156 if (iter.type() == relocInfo::virtual_call_type) { |
1157 if (iter.type() == relocInfo::virtual_call_type) { |
1157 CompiledIC* ic = CompiledIC_at(&iter); |
1158 CompiledIC* ic = CompiledIC_at(&iter); |
1158 ic->clear_ic_stub(); |
1159 ic->clear_ic_stub(); |