hotspot/src/share/vm/code/nmethod.cpp
changeset 26912 19021f626ad2
parent 26796 666464578742
child 27247 99db666dbe8e
child 27420 04e6f914cce1
--- 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() {