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:
Chris Plummer 2018-06-27 19:09:17 -07:00
parent 6fc0ec871a
commit a937d2876b

View File

@ -490,9 +490,11 @@ JNIEXPORT void JNICALL Java_sun_tools_attach_VirtualMachineImpl_enqueue
JNU_ThrowIOException(env, JNU_ThrowIOException(env,
"Unable to enqueue operation: the target VM does not support attach mechanism"); "Unable to enqueue operation: the target VM does not support attach mechanism");
break; break;
default : default : {
JNU_ThrowInternalError(env, char errmsg[128];
"Remote thread failed for unknown reason"); sprintf(errmsg, "Remote thread failed for unknown reason (%d)", exitCode);
JNU_ThrowInternalError(env, errmsg);
}
} }
} }
} }