< prev index next >

src/hotspot/share/oops/markOop.hpp

Print this page
rev 54621 : imported patch 8221734-v1

*** 175,184 **** --- 175,193 ---- } JavaThread* biased_locker() const { assert(has_bias_pattern(), "should not call this otherwise"); return (JavaThread*) ((intptr_t) (mask_bits(value(), ~(biased_lock_mask_in_place | age_mask_in_place | epoch_mask_in_place)))); } + bool biased_locker_is(JavaThread* thread) const { + if (!has_bias_pattern()) { + return false; + } + // If current thread is not the owner it can be unbiased at anytime. + JavaThread* jt = (JavaThread*) ((intptr_t) (mask_bits(value(), ~(biased_lock_mask_in_place | age_mask_in_place | epoch_mask_in_place)))); + return jt == thread; + } + // Indicates that the mark has the bias bit set but that it has not // yet been biased toward a particular thread bool is_biased_anonymously() const { return (has_bias_pattern() && (biased_locker() == NULL)); }
< prev index next >