- Error
--------------------------------------------------------
Error: VM option 'ShowHiddenFrames' is diagnostic and must be enabled via -XX:+UnlockDiagnosticVMOptions.
Error: The unlock option must precede 'ShowHiddenFrames'.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
--------------------------------------------------------
- Reproduce
--------------------------------------------------------
Ben="runtime/StackTrace/HiddenFrameTest.java"
make test TEST="${Ben}" CONF=release
--------------------------------------------------------
- Fix
--------------------------------------------------------
diff -r 4364524f8cac test/hotspot/jtreg/runtime/StackTrace/HiddenFrameTest.java
--- a/test/hotspot/jtreg/runtime/StackTrace/HiddenFrameTest.java Fri Aug 30 09:38:40 2019 +0800
+++ b/test/hotspot/jtreg/runtime/StackTrace/HiddenFrameTest.java Fri Aug 30 11:11:25 2019 +0800
@@ -26,8 +26,8 @@
* @bug 8216977
* @summary Test null source file and negative line number from hidden frame produces correct output.
* @library /test/lib
- * @run main/othervm -XX:+ShowHiddenFrames HiddenFrameTest visible
- * @run main/othervm -XX:-ShowHiddenFrames HiddenFrameTest hidden
+ * @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+ShowHiddenFrames HiddenFrameTest visible
+ * @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:-ShowHiddenFrames HiddenFrameTest hidden
*/
import jdk.test.lib.Asserts;
--------------------------------------------------------