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 {
|
try {
|
||||||
JVMTIUtils.suspendThread(t);
|
JVMTIUtils.suspendThread(t);
|
||||||
} catch (JVMTIUtils.JvmtiException e) {
|
} 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;
|
throw e;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -62,7 +63,8 @@ public class HandshakeDirectTest implements Runnable {
|
|||||||
try {
|
try {
|
||||||
JVMTIUtils.resumeThread(t);
|
JVMTIUtils.resumeThread(t);
|
||||||
} catch (JVMTIUtils.JvmtiException e) {
|
} 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;
|
throw e;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -31,6 +31,7 @@ public class JVMTIUtils {
|
|||||||
public static int JVMTI_ERROR_THREAD_SUSPENDED = 14;
|
public static int JVMTI_ERROR_THREAD_SUSPENDED = 14;
|
||||||
public static int JVMTI_ERROR_THREAD_NOT_ALIVE = 15;
|
public static int JVMTI_ERROR_THREAD_NOT_ALIVE = 15;
|
||||||
|
|
||||||
|
public static int JVMTI_ERROR_WRONG_PHASE = 112;
|
||||||
|
|
||||||
public static class JvmtiException extends RuntimeException {
|
public static class JvmtiException extends RuntimeException {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user