Thread dump blocked AND locked

后端 未结 2 1541
闹比i
闹比i 2021-01-14 15:46

This is similar to Java thread dump: BLOCKED thread without "waiting to lock ...".

Basically, I am seeing a BLOCKED thread but it has the lock it is wait

2条回答
  •  耶瑟儿~
    2021-01-14 16:25

    This is a known cosmetic bug in Oracle's HotSpot JVM. As you say, in your stack trace where you see - locked <0x00007f3e9a0b3830> it should actually say - waiting to lock <0x00007f3e9a0b3830> since the thread has not yet acquired the relevant lock.

    See this bug for more details.

提交回复
热议问题