Skip to content
This repository was archived by the owner on Mar 2, 2019. It is now read-only.

Commit 8a8f702

Browse files
author
cjplummer
committed
8205719: Windows Java_sun_tools_attach_VirtualMachineImpl_enqueue() method should include exitCode in exception message
Summary: Include GetExitCodeThread() result in the exception message Reviewed-by: sspitsyn, dcubed
1 parent 63e9543 commit 8a8f702

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/jdk.attach/windows/native/libattach/VirtualMachineImpl.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -490,9 +490,11 @@ JNIEXPORT void JNICALL Java_sun_tools_attach_VirtualMachineImpl_enqueue
490490
JNU_ThrowIOException(env,
491491
"Unable to enqueue operation: the target VM does not support attach mechanism");
492492
break;
493-
default :
494-
JNU_ThrowInternalError(env,
495-
"Remote thread failed for unknown reason");
493+
default : {
494+
char errmsg[128];
495+
sprintf(errmsg, "Remote thread failed for unknown reason (%d)", exitCode);
496+
JNU_ThrowInternalError(env, errmsg);
497+
}
496498
}
497499
}
498500
}

0 commit comments

Comments
 (0)