test/runtime/jsig/TestJNI.c

changeset 5453
f9ee986a9fea
parent 5433
72727c4b6dec
child 6876
710a3c8b516e
     1.1 --- a/test/runtime/jsig/TestJNI.c	Fri Jul 26 15:24:32 2013 +0000
     1.2 +++ b/test/runtime/jsig/TestJNI.c	Tue Jul 30 14:14:25 2013 -0700
     1.3 @@ -21,7 +21,6 @@
     1.4   * questions.
     1.5   */
     1.6  
     1.7 -#define _GNU_SOURCE // for the definition of REG_RIP in ucontext.h
     1.8  #include <stdio.h>
     1.9  #include <jni.h>
    1.10  #include <signal.h>
    1.11 @@ -32,11 +31,8 @@
    1.12  #endif
    1.13  
    1.14  void sig_handler(int sig, siginfo_t *info, ucontext_t *context) {
    1.15 -    int thrNum;
    1.16  
    1.17      printf( " HANDLER (1) " );
    1.18 -    // Move forward RIP to skip failing instruction
    1.19 -    context->uc_mcontext.gregs[REG_RIP] += 6;
    1.20  }
    1.21  
    1.22  JNIEXPORT void JNICALL Java_TestJNI_doSomething(JNIEnv *env, jclass klass, jint val) {

mercurial