Skip to content

Commit b7c637e

Browse files
committed
JDWP.ThreadReference.STATUS#getThreadStatus now correctly returns MONITOR if thread is blocked on monitor enter.
1 parent e1bdb6e commit b7c637e

File tree

1 file changed

+1
-1
lines changed
  • espresso/src/com.oracle.truffle.espresso.jdwp/src/com/oracle/truffle/espresso/jdwp/impl

1 file changed

+1
-1
lines changed

espresso/src/com.oracle.truffle.espresso.jdwp/src/com/oracle/truffle/espresso/jdwp/impl/JDWP.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2093,7 +2093,7 @@ private static int getThreadStatus(int jvmtiThreadStatus) {
20932093
if ((masked & JVMTI_THREAD_STATE_RUNNABLE) != 0) {
20942094
return ThreadStatusConstants.RUNNING;
20952095
} else if ((masked & JVMTI_THREAD_STATE_BLOCKED_ON_MONITOR_ENTER) != 0) {
2096-
return ThreadStatusConstants.WAIT;
2096+
return ThreadStatusConstants.MONITOR;
20972097
}
20982098
return ThreadStatusConstants.RUNNING;
20992099
} else if ((masked & JVMTI_THREAD_STATE_WAITING) != 0) {

0 commit comments

Comments
 (0)