--- a/hotspot/src/share/vm/code/nmethod.cpp Fri Sep 26 20:09:02 2014 -0700
+++ b/hotspot/src/share/vm/code/nmethod.cpp Mon Sep 29 08:40:51 2014 +0200
@@ -1130,6 +1130,18 @@
}
}
+// Clear ICStubs of all compiled ICs
+void nmethod::clear_ic_stubs() {
+ assert_locked_or_safepoint(CompiledIC_lock);
+ RelocIterator iter(this);
+ while(iter.next()) {
+ if (iter.type() == relocInfo::virtual_call_type) {
+ CompiledIC* ic = CompiledIC_at(&iter);
+ ic->clear_ic_stub();
+ }
+ }
+}
+
void nmethod::cleanup_inline_caches() {