RFR: 8255678: Add Mutex::try_lock version without rank checks [v5]

Patricio Chilano Mateo pchilanomate at openjdk.java.net
Thu Nov 19 18:17:06 UTC 2020


On Thu, 19 Nov 2020 18:03:31 GMT, Patricio Chilano Mateo <pchilanomate at openjdk.org> wrote:

>> src/hotspot/share/runtime/mutex.hpp line 204:
>> 
>>> 202:   Thread* owner() const         { return _owner; }
>>> 203:   void set_owner(Thread* owner) { set_owner_implementation(owner); }
>>> 204:   bool owned_by_self(Thread* thread) const;
>> 
>> Does this need to be public? Arguably when passing in a thread this should just be owned_by(x) - unless you'd also like to assert that x == Thread::current() ?
>
> I removed set_owner(Thread* owner).

s/set_owner/owned_by_self

-------------

PR: https://git.openjdk.java.net/jdk/pull/1242


More information about the hotspot-runtime-dev mailing list