< prev index next >
src/hotspot/share/runtime/biasedLocking.cpp
Print this page
rev 57079 : [mq]: handshake-logs
@@ -502,11 +502,11 @@
return _safepoint_id;
}
};
-class RevokeOneBias : public ThreadClosure {
+class RevokeOneBias : public HandshakeOperation {
protected:
Handle _obj;
JavaThread* _requesting_thread;
JavaThread* _biased_locker;
BiasedLocking::Condition _status_code;
@@ -518,11 +518,13 @@
, _requesting_thread(requesting_thread)
, _biased_locker(biased_locker)
, _status_code(BiasedLocking::NOT_BIASED)
, _biased_locker_id(0) {}
- void do_thread(Thread* target) {
+ const char* name() { return "RevokeOneBias"; }
+
+ void do_thread(JavaThread* target) {
assert(target == _biased_locker, "Wrong thread");
oop o = _obj();
markWord mark = o->mark();
< prev index next >