changeset 12232:ad402ced3a63

8160376: DebuggerException: Can't attach symbolicator to the process Summary: Make SA link to JavaRuntimeSupport in MacOS X Reviewed-by: dsamersoff, dcubed Contributed-by: Sharath Ballal <sharath.ballal@oracle.com>
author dsamersoff
date Mon, 24 Oct 2016 14:51:54 +0300
parents 830b86a4ead5
children 1b1a49b438a7 22635dbb3f84
files make/lib/Lib-jdk.hotspot.agent.gmk src/jdk.hotspot.agent/macosx/native/libsaproc/MacosxDebuggerLocal.m test/runtime/SharedArchiveFile/SASymbolTableTest.java test/serviceability/sa/jmap-hprof/JMapHProfLargeHeapTest.java
diffstat 4 files changed, 3 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/make/lib/Lib-jdk.hotspot.agent.gmk	Mon Oct 24 09:55:58 2016 +0200
+++ b/make/lib/Lib-jdk.hotspot.agent.gmk	Mon Oct 24 14:51:54 2016 +0300
@@ -74,7 +74,7 @@
       -mstack-alignment=16 -fPIC
   SA_LDFLAGS := $(LDFLAGS_JDKLIB)
   SA_LIBS := -framework Foundation -framework JavaNativeFoundation \
-      -framework Security -framework CoreFoundation
+      -framework JavaRuntimeSupport -framework Security -framework CoreFoundation
 
 else ifeq ($(OPENJDK_TARGET_OS), windows)
   SA_NAME := sawindbg
--- a/src/jdk.hotspot.agent/macosx/native/libsaproc/MacosxDebuggerLocal.m	Mon Oct 24 09:55:58 2016 +0200
+++ b/src/jdk.hotspot.agent/macosx/native/libsaproc/MacosxDebuggerLocal.m	Mon Oct 24 14:51:54 2016 +0300
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2002, 2014, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2002, 2016, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -25,6 +25,7 @@
 #include <objc/objc-runtime.h>
 #import <Foundation/Foundation.h>
 #import <JavaNativeFoundation/JavaNativeFoundation.h>
+#import <JavaRuntimeSupport/JavaRuntimeSupport.h>
 
 #include <jni.h>
 
--- a/test/runtime/SharedArchiveFile/SASymbolTableTest.java	Mon Oct 24 09:55:58 2016 +0200
+++ b/test/runtime/SharedArchiveFile/SASymbolTableTest.java	Mon Oct 24 14:51:54 2016 +0300
@@ -24,9 +24,6 @@
 /*
  * @test SASymbolTableTest
  * @summary Walk symbol table using SA, with and without CDS.
- * Started failing on 2016.06.24 due to 8160376 on MacOS X so quarantine
- * it on that platform:
- * @requires os.family != "mac"
  * @library /test/lib
  * @modules java.base/jdk.internal.misc
  *          jdk.hotspot.agent/sun.jvm.hotspot.oops
--- a/test/serviceability/sa/jmap-hprof/JMapHProfLargeHeapTest.java	Mon Oct 24 09:55:58 2016 +0200
+++ b/test/serviceability/sa/jmap-hprof/JMapHProfLargeHeapTest.java	Mon Oct 24 14:51:54 2016 +0300
@@ -42,9 +42,6 @@
  * @bug 6313383
  * @key regression
  * @summary Regression test for hprof export issue due to large heaps (>2G)
- * Started failing on 2016.06.24 due to 8160376 on MacOS X so quarantine
- * it on that platform:
- * @requires os.family != "mac"
  * @library /test/lib
  * @modules java.base/jdk.internal.misc
  *          java.compiler