< prev index next >

src/share/vm/runtime/biasedLocking.cpp

Print this page

        

@@ -40,11 +40,11 @@
 BiasedLockingCounters BiasedLocking::_counters;
 
 static GrowableArray<Handle>*  _preserved_oop_stack  = NULL;
 static GrowableArray<markOop>* _preserved_mark_stack = NULL;
 
-static void enable_biased_locking(Klass* k) {
+static void enable_biased_locking(InstanceKlass* k) {
   k->set_prototype_header(markOopDesc::biased_locking_prototype());
 }
 
 class VM_EnableBiasedLocking: public VM_Operation {
  private:

@@ -56,11 +56,11 @@
   bool is_cheap_allocated() const { return _is_cheap_allocated; }
 
   void doit() {
     // Iterate the system dictionary enabling biased locking for all
     // currently loaded classes
-    SystemDictionary::classes_do(enable_biased_locking);
+    ClassLoaderDataGraph::dictionary_classes_do(enable_biased_locking);
     // Indicate that future instances should enable it as well
     _biased_locking_enabled = true;
 
     log_info(biasedlocking)("Biased locking enabled");
   }
< prev index next >