7162400: Intermittent java.io.IOException: Bad file number during HotSpotVirtualMachine.executeCommand

Intermittent java.io.IOException: Bad file number during HotSpotVirtualMachine.executeCommand

Reviewed-by: dcubed, dholmes, sspitsyn, mgerdin, ctornqvi, dsamersoff
This commit is contained in:
Peter Allwin 2013-07-12 18:43:27 +02:00
parent c716fa083c
commit 221308625d
8 changed files with 248 additions and 4 deletions

View file

@ -3637,6 +3637,7 @@ jint Threads::create_vm(JavaVMInitArgs* args, bool* canTryAgain) {
// Start Attach Listener if +StartAttachListener or it can't be started lazily
if (!DisableAttachMechanism) {
AttachListener::vm_start();
if (StartAttachListener || AttachListener::init_at_startup()) {
AttachListener::init();
}