changeset 47635:dfb375d231fb

8184042: several serviceability/sa tests timed out on MacOS X Summary: Restore the ptrace attach argument to PT_ATTACH from PT_ATTACHEXC Reviewed-by: dholmes, sspitsyn, dcubed, poonam, dsamersoff Contributed-by: jini.george@oracle.com
author jgeorge
date Mon, 16 Oct 2017 23:23:27 -0700
parents 6a0c42c40cd1
children 52d46d7e3454
files src/jdk.hotspot.agent/macosx/native/libsaproc/MacosxDebuggerLocal.m test/jdk/ProblemList.txt
diffstat 2 files changed, 9 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/src/jdk.hotspot.agent/macosx/native/libsaproc/MacosxDebuggerLocal.m	Mon Oct 16 22:36:06 2017 -0400
+++ b/src/jdk.hotspot.agent/macosx/native/libsaproc/MacosxDebuggerLocal.m	Mon Oct 16 23:23:27 2017 -0700
@@ -689,8 +689,15 @@
 // attach to a process/thread specified by "pid"
 static bool ptrace_attach(pid_t pid) {
   int res;
-  if ((res = ptrace(PT_ATTACHEXC, pid, 0, 0)) < 0) {
-    print_error("ptrace(PT_ATTACHEXC, %d) failed with %d\n", pid, res);
+#ifdef __clang__
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
+#endif
+  if ((res = ptrace(PT_ATTACH, pid, 0, 0)) < 0) {
+    print_error("ptrace(PT_ATTACH, %d) failed with %d\n", pid, res);
+#ifdef __clang__
+#pragma clang diagnostic pop
+#endif
     return false;
   } else {
     return ptrace_waitpid(pid);
--- a/test/jdk/ProblemList.txt	Mon Oct 16 22:36:06 2017 -0400
+++ b/test/jdk/ProblemList.txt	Mon Oct 16 23:23:27 2017 -0700
@@ -301,14 +301,6 @@
 
 com/sun/tools/attach/StartManagementAgent.java                  8179700 generic-all
 
-sun/tools/jhsdb/AlternateHashingTest.java                       8184042 macosx-all
-
-sun/tools/jhsdb/BasicLauncherTest.java                          8184042 macosx-all
-
-sun/tools/jhsdb/HeapDumpTest.java                               8184042 macosx-all
-
-sun/tools/jhsdb/heapconfig/JMapHeapConfigTest.java              8184042 macosx-all
-
 ############################################################################
 
 # jdk_other