changeset 54911:c5bb50505a65

8224020: AsyncGetCallTrace test should not run on PPC64 or IA64 Summary: Restrict the test to the right architectures Reviewed-by: cjplummer, sspitsyn, simonis
author jcbeyler
date Thu, 16 May 2019 12:48:21 -0700
parents 361bd0fb9390
children c6f2500c1504
files test/hotspot/jtreg/serviceability/AsyncGetCallTrace/MyPackage/ASGCTBaseTest.java test/hotspot/jtreg/serviceability/AsyncGetCallTrace/libAsyncGetCallTraceTest.cpp
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/test/hotspot/jtreg/serviceability/AsyncGetCallTrace/MyPackage/ASGCTBaseTest.java	Thu May 16 21:32:24 2019 +0200
+++ b/test/hotspot/jtreg/serviceability/AsyncGetCallTrace/MyPackage/ASGCTBaseTest.java	Thu May 16 12:48:21 2019 -0700
@@ -28,7 +28,8 @@
  * @test
  * @summary Verifies that AsyncGetCallTrace is call-able and provides sane information.
  * @compile ASGCTBaseTest.java
- * @requires (os.family == "linux")
+ * @requires os.family == "linux"
+ * @requires os.arch=="x86" | os.arch=="i386" | os.arch=="amd64" | os.arch=="x86_64" | os.arch=="arm" | os.arch=="sparc" | os.arch=="aarch64"
  * @run main/othervm/native -agentlib:AsyncGetCallTraceTest MyPackage.ASGCTBaseTest
  */
 
--- a/test/hotspot/jtreg/serviceability/AsyncGetCallTrace/libAsyncGetCallTraceTest.cpp	Thu May 16 21:32:24 2019 +0200
+++ b/test/hotspot/jtreg/serviceability/AsyncGetCallTrace/libAsyncGetCallTraceTest.cpp	Thu May 16 12:48:21 2019 -0700
@@ -185,7 +185,7 @@
 
 JNIEXPORT jboolean JNICALL
 Java_MyPackage_ASGCTBaseTest_checkAsyncGetCallTraceCall(JNIEnv* env, jclass cls) {
-  ASGCTType agct = reinterpret_cast<ASGCTType>(dlsym(NULL, "AsyncGetCallTrace"));
+  ASGCTType agct = reinterpret_cast<ASGCTType>(dlsym(RTLD_DEFAULT, "AsyncGetCallTrace"));
 
   const int MAX_DEPTH = 16;
   ASGCT_CallTrace trace;