8255706: The JDWP debug agent unecessarily checks for JVMTI_ERROR_INTERRUPT after calling RawMonitorEnter

Reviewed-by: alanb, dholmes, sspitsyn
This commit is contained in:
Chris Plummer 2020-11-05 23:18:01 +00:00
parent e66fd6f0aa
commit e42c134038

View File

@ -1008,16 +1008,9 @@ void
debugMonitorEnter(jrawMonitorID monitor)
{
jvmtiError error;
while (JNI_TRUE) {
error = JVMTI_FUNC_PTR(gdata->jvmti,RawMonitorEnter)
(gdata->jvmti, monitor);
error = ignore_vm_death(error);
if (error == JVMTI_ERROR_INTERRUPT) {
handleInterrupt();
} else {
break;
}
}
error = JVMTI_FUNC_PTR(gdata->jvmti,RawMonitorEnter)
(gdata->jvmti, monitor);
error = ignore_vm_death(error);
if (error != JVMTI_ERROR_NONE) {
EXIT_ERROR(error, "on raw monitor enter");
}