From 51f697962cd0a9092041d44bc8a85a49af8701a8 Mon Sep 17 00:00:00 2001
From: Goetz Lindenmaier <goetz@openjdk.org>
Date: Tue, 28 Aug 2018 17:03:16 +0200
Subject: [PATCH] 8209939: [testbug][ppc] Test SafepointPollingPages fails
 after 8208499 with UseSIGTRAP on

Reviewed-by: mdoerr, ghaug
---
 test/hotspot/jtreg/runtime/NMT/SafepointPollingPages.java | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/test/hotspot/jtreg/runtime/NMT/SafepointPollingPages.java b/test/hotspot/jtreg/runtime/NMT/SafepointPollingPages.java
index 63a29d42128..c4e70950ae2 100644
--- a/test/hotspot/jtreg/runtime/NMT/SafepointPollingPages.java
+++ b/test/hotspot/jtreg/runtime/NMT/SafepointPollingPages.java
@@ -21,7 +21,7 @@
  * questions.
  */
 
-/*
+/**
  * @test
  * @bug 8208499
  * @summary NMT should report safepoint polling page(s)
@@ -29,8 +29,9 @@
  * @library /test/lib
  * @modules java.base/jdk.internal.misc
  *          java.management
- * @run main/othervm -Xbootclasspath/a:. -XX:NativeMemoryTracking=summary -XX:+ThreadLocalHandshakes SafepointPollingPages
- * @run main/othervm -Xbootclasspath/a:. -XX:NativeMemoryTracking=summary -XX:-ThreadLocalHandshakes SafepointPollingPages
+ * @comment On ppc, with UseSIGTRAP on, no polling pages are used, but trap instructions instead.
+ * @run main/othervm -XX:-UseSIGTRAP -XX:+IgnoreUnrecognizedVMOptions -Xbootclasspath/a:. -XX:NativeMemoryTracking=summary -XX:+ThreadLocalHandshakes SafepointPollingPages
+ * @run main/othervm -XX:-UseSIGTRAP -XX:+IgnoreUnrecognizedVMOptions -Xbootclasspath/a:. -XX:NativeMemoryTracking=summary -XX:-ThreadLocalHandshakes SafepointPollingPages
  */
 
 import jdk.test.lib.process.ProcessTools;