Mercurial > hg > graal-jvmci-8
diff test/runtime/jsig/TestJNI.c @ 11160:72727c4b6dec
8020791: [TESTBUG] runtime/jsig/Test8017498.sh failed to compile native code
Summary: Added -DLINUX to the gcc command and improved the .sh script
Reviewed-by: dcubed, dholmes, minqi
author | ccheung |
---|---|
date | Fri, 19 Jul 2013 14:54:54 -0700 |
parents | 732af649bc3a |
children | f9ee986a9fea |
line wrap: on
line diff
--- a/test/runtime/jsig/TestJNI.c Fri Jul 19 17:56:27 2013 +0200 +++ b/test/runtime/jsig/TestJNI.c Fri Jul 19 14:54:54 2013 -0700 @@ -21,9 +21,9 @@ * questions. */ +#define _GNU_SOURCE // for the definition of REG_RIP in ucontext.h #include <stdio.h> #include <jni.h> -#define __USE_GNU #include <signal.h> #include <sys/ucontext.h> @@ -42,8 +42,6 @@ JNIEXPORT void JNICALL Java_TestJNI_doSomething(JNIEnv *env, jclass klass, jint val) { struct sigaction act; struct sigaction oact; - pthread_attr_t attr; - stack_t stack; act.sa_flags = SA_ONSTACK|SA_RESTART|SA_SIGINFO; sigfillset(&act.sa_mask);