aboutsummaryrefslogtreecommitdiff
path: root/test/runtime/jsig/TestJNI.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/runtime/jsig/TestJNI.c')
-rw-r--r--test/runtime/jsig/TestJNI.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/test/runtime/jsig/TestJNI.c b/test/runtime/jsig/TestJNI.c
index 20057facd..c85b778a6 100644
--- a/test/runtime/jsig/TestJNI.c
+++ b/test/runtime/jsig/TestJNI.c
@@ -21,7 +21,6 @@
* questions.
*/
-#define _GNU_SOURCE // for the definition of REG_RIP in ucontext.h
#include <stdio.h>
#include <jni.h>
#include <signal.h>
@@ -32,11 +31,8 @@ extern "C" {
#endif
void sig_handler(int sig, siginfo_t *info, ucontext_t *context) {
- int thrNum;
printf( " HANDLER (1) " );
- // Move forward RIP to skip failing instruction
- context->uc_mcontext.gregs[REG_RIP] += 6;
}
JNIEXPORT void JNICALL Java_TestJNI_doSomething(JNIEnv *env, jclass klass, jint val) {