hotspot/src/share/vm/runtime/biasedLocking.cpp
changeset 13728 882756847a04
parent 13195 be27e1b6a4b9
child 13925 37f75ba502b1
--- a/hotspot/src/share/vm/runtime/biasedLocking.cpp	Fri Aug 31 16:39:35 2012 -0700
+++ b/hotspot/src/share/vm/runtime/biasedLocking.cpp	Sat Sep 01 13:25:18 2012 -0400
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2005, 2012, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -38,7 +38,7 @@
 static GrowableArray<Handle>*  _preserved_oop_stack  = NULL;
 static GrowableArray<markOop>* _preserved_mark_stack = NULL;
 
-static void enable_biased_locking(klassOop k) {
+static void enable_biased_locking(Klass* k) {
   Klass::cast(k)->set_prototype_header(markOopDesc::biased_locking_prototype());
 }
 
@@ -276,7 +276,7 @@
   // 2. Revoke the biases of all objects in the heap of this type
   //    and don't allow rebiasing of these objects. Disable
   //    allocation of objects of that type with the bias bit set.
-  Klass* k = o->blueprint();
+  Klass* k = o->klass();
   jlong cur_time = os::javaTimeMillis();
   jlong last_bulk_revocation_time = k->last_biased_lock_bulk_revocation_time();
   int revocation_count = k->biased_lock_revocation_count();
@@ -330,10 +330,10 @@
   }
 
   jlong cur_time = os::javaTimeMillis();
-  o->blueprint()->set_last_biased_lock_bulk_revocation_time(cur_time);
+  o->klass()->set_last_biased_lock_bulk_revocation_time(cur_time);
 
 
-  klassOop k_o = o->klass();
+  Klass* k_o = o->klass();
   Klass* klass = Klass::cast(k_o);
 
   if (bulk_rebias) {