8227738: jvmti/DataDumpRequest/datadumpreq001 failed due to "exit code is 134"
authorysuenaga
Wed, 17 Jul 2019 23:22:48 +0900
changeset 55719 4888ccfc234e
parent 55718 9fbc32392798
child 55720 dec1d532c000
8227738: jvmti/DataDumpRequest/datadumpreq001 failed due to "exit code is 134" Reviewed-by: sspitsyn, cjplummer
src/hotspot/share/runtime/os.cpp
--- a/src/hotspot/share/runtime/os.cpp	Sat Jul 13 12:14:24 2019 -0400
+++ b/src/hotspot/share/runtime/os.cpp	Wed Jul 17 23:22:48 2019 +0900
@@ -370,12 +370,15 @@
             continue;
           } else if (cur_state == AL_NOT_INITIALIZED) {
             // Start to initialize.
-            if (!AttachListener::is_init_trigger()) {
+            if (AttachListener::is_init_trigger()) {
+              // Attach Listener has been initialized.
+              // Accept subsequent request.
+              continue;
+            } else {
               // Attach Listener could not be started.
               // So we need to transit the state to AL_NOT_INITIALIZED.
               AttachListener::set_state(AL_NOT_INITIALIZED);
             }
-            continue;
           } else if (AttachListener::check_socket_file()) {
             // Attach Listener has been started, but unix domain socket file
             // does not exist. So restart Attach Listener.