8294406: Test runtime/handshake/HandshakeDirectTest.java failed: JVMTI_ERROR_WRONG_PHASE
Reviewed-by: dholmes, sspitsyn
This commit is contained in:
parent
4d6668e7ee
commit
2dbedf0e93
@ -52,7 +52,8 @@ public class HandshakeDirectTest implements Runnable {
|
||||
try {
|
||||
JVMTIUtils.suspendThread(t);
|
||||
} catch (JVMTIUtils.JvmtiException e) {
|
||||
if (e.getCode() != JVMTIUtils.JVMTI_ERROR_THREAD_NOT_ALIVE) {
|
||||
if (e.getCode() != JVMTIUtils.JVMTI_ERROR_THREAD_NOT_ALIVE
|
||||
&& e.getCode() != JVMTIUtils.JVMTI_ERROR_WRONG_PHASE) {
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
@ -62,7 +63,8 @@ public class HandshakeDirectTest implements Runnable {
|
||||
try {
|
||||
JVMTIUtils.resumeThread(t);
|
||||
} catch (JVMTIUtils.JvmtiException e) {
|
||||
if (e.getCode() != JVMTIUtils.JVMTI_ERROR_THREAD_NOT_ALIVE) {
|
||||
if (e.getCode() != JVMTIUtils.JVMTI_ERROR_THREAD_NOT_ALIVE
|
||||
&& e.getCode() != JVMTIUtils.JVMTI_ERROR_WRONG_PHASE) {
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
@ -31,6 +31,7 @@ public class JVMTIUtils {
|
||||
public static int JVMTI_ERROR_THREAD_SUSPENDED = 14;
|
||||
public static int JVMTI_ERROR_THREAD_NOT_ALIVE = 15;
|
||||
|
||||
public static int JVMTI_ERROR_WRONG_PHASE = 112;
|
||||
|
||||
public static class JvmtiException extends RuntimeException {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user