# HG changeset patch # User dsamersoff # Date 1437562515 -10800 # Node ID 27c58687732a96a4e91421f9793ed01f93a1edad # Parent 1f50deed8864ff79db70d3a616c98de50a743a53 8129971: TestStackTrace.java: ArrayIndexOutOfBoundsException thrown by AARCH64ThreadContext.setRegister Summary: Added missed AARCH64 register Reviewed-by: jbachorik, ykantser diff -r 1f50deed8864 -r 27c58687732a hotspot/agent/src/share/classes/sun/jvm/hotspot/debugger/aarch64/AARCH64ThreadContext.java --- a/hotspot/agent/src/share/classes/sun/jvm/hotspot/debugger/aarch64/AARCH64ThreadContext.java Wed Jul 22 07:47:34 2015 +0200 +++ b/hotspot/agent/src/share/classes/sun/jvm/hotspot/debugger/aarch64/AARCH64ThreadContext.java Wed Jul 22 13:55:15 2015 +0300 @@ -37,6 +37,21 @@ public abstract class AARCH64ThreadContext implements ThreadContext { // Taken from /usr/include/asm/sigcontext.h on Linux/AARCH64. + // /* + // * Signal context structure - contains all info to do with the state + // * before the signal handler was invoked. + // */ + // struct sigcontext { + // __u64 fault_address; + // /* AArch64 registers */ + // __u64 regs[31]; + // __u64 sp; + // __u64 pc; + // __u64 pstate; + // /* 4K reserved for FP/SIMD state and future expansion */ + // __u8 __reserved[4096] __attribute__((__aligned__(16))); + // }; + // NOTE: the indices for the various registers must be maintained as // listed across various operating systems. However, only a small // subset of the registers' values are guaranteed to be present (and @@ -78,8 +93,9 @@ public static final int LR = 30; public static final int SP = 31; public static final int PC = 32; + public static final int PSTATE = 33; - public static final int NPRGREG = 33; + public static final int NPRGREG = 34; private long[] data; diff -r 1f50deed8864 -r 27c58687732a hotspot/test/serviceability/sa/TestStackTrace.java --- a/hotspot/test/serviceability/sa/TestStackTrace.java Wed Jul 22 07:47:34 2015 +0200 +++ b/hotspot/test/serviceability/sa/TestStackTrace.java Wed Jul 22 13:55:15 2015 +0300 @@ -34,7 +34,6 @@ * @test * @library /../../test/lib/share/classes * @library /testlibrary - * @ignore 8129971 * @build jdk.test.lib.* * @build jdk.test.lib.apps.* * @run main TestStackTrace