8205719: Windows Java_sun_tools_attach_VirtualMachineImpl_enqueue() method should include exitCode in exception message
Include GetExitCodeThread() result in the exception message Reviewed-by: sspitsyn, dcubed
This commit is contained in:
parent
6fc0ec871a
commit
a937d2876b
@ -490,9 +490,11 @@ JNIEXPORT void JNICALL Java_sun_tools_attach_VirtualMachineImpl_enqueue
|
||||
JNU_ThrowIOException(env,
|
||||
"Unable to enqueue operation: the target VM does not support attach mechanism");
|
||||
break;
|
||||
default :
|
||||
JNU_ThrowInternalError(env,
|
||||
"Remote thread failed for unknown reason");
|
||||
default : {
|
||||
char errmsg[128];
|
||||
sprintf(errmsg, "Remote thread failed for unknown reason (%d)", exitCode);
|
||||
JNU_ThrowInternalError(env, errmsg);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user