hotspot/src/share/vm/oops/klassVtable.cpp
changeset 9172 a4e13ccafc44
parent 8725 8c1e3dd5fe1b
child 13728 882756847a04
--- a/hotspot/src/share/vm/oops/klassVtable.cpp	Thu Apr 14 23:06:33 2011 -0400
+++ b/hotspot/src/share/vm/oops/klassVtable.cpp	Fri Apr 15 09:36:28 2011 -0400
@@ -645,6 +645,15 @@
   }
 }
 
+// CDS/RedefineClasses support - clear vtables so they can be reinitialized
+void klassVtable::clear_vtable() {
+  for (int i = 0; i < _length; i++) table()[i].clear();
+}
+
+bool klassVtable::is_initialized() {
+  return _length == 0 || table()[0].method() != NULL;
+}
+
 
 // Garbage collection
 void klassVtable::oop_follow_contents() {