On Wed, 6 Mar 2024 23:47:01 GMT, Coleen Phillimore <cole...@openjdk.org> wrote:

>> src/hotspot/share/runtime/mutex.cpp line 537:
>> 
>>> 535:     // can be called by jvmti by VMThread.
>>> 536:     if (current->is_Java_thread()) {
>>> 537:       _sem.wait_with_safepoint_check(JavaThread::cast(current));
>> 
>> Why not use PlatformMutex + OSThreadWaitState instead of a semaphore?
>
> Semaphore seemed simpler (?)

OK.  It's a good thing HotSpot doesn't need to worry about priority-inheritance 
for mutexes.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/17739#discussion_r1515314037

Reply via email to