8023786: (jdk) setjmp/longjmp changes the process signal mask on OS X

Reviewed-by: dholmes
This commit is contained in:
Staffan Larsen 2013-08-29 11:22:44 +02:00
parent 6c97499183
commit 932c79bc4c
2 changed files with 12 additions and 0 deletions
jdk/src/share
back
native/common

@ -28,6 +28,12 @@
#include "util.h"
#include "SDE.h"
#ifdef __APPLE__
/* use setjmp/longjmp versions that do not save/restore the signal mask */
#define setjmp _setjmp
#define longjmp _longjmp
#endif
/**
* This SourceDebugExtension code does not
* allow concurrent translation - due to caching method.

@ -90,6 +90,12 @@
#include "classfile_constants.h"
#include "opcodes.in_out"
#ifdef __APPLE__
/* use setjmp/longjmp versions that do not save/restore the signal mask */
#define setjmp _setjmp
#define longjmp _longjmp
#endif
#define MAX_ARRAY_DIMENSIONS 255
/* align byte code */
#ifndef ALIGN_UP