-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
upgrade pni to 21.0.0.18 and upgrade make scripts
- Loading branch information
Showing
44 changed files
with
1,285 additions
and
666 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
#include "pni.h" | ||
|
||
#if PNI_GRAAL | ||
|
||
static __thread void* _graalThread; | ||
static void* _graalIsolate; | ||
|
||
JNIEXPORT void JNICALL SetPNIGraalThread(void* thread) { | ||
_graalThread = thread; | ||
} | ||
|
||
JNIEXPORT void* JNICALL GetPNIGraalThread(void) { | ||
return _graalThread; | ||
} | ||
|
||
JNIEXPORT void JNICALL SetPNIGraalIsolate(void* isolate) { | ||
_graalIsolate = isolate; | ||
} | ||
|
||
JNIEXPORT void* JNICALL GetPNIGraalIsolate(void) { | ||
return _graalIsolate; | ||
} | ||
|
||
#endif // PNI_GRAAL | ||
|
||
static PNIFuncInvokeFunc _PNIFuncInvokeFunc; | ||
|
||
JNIEXPORT PNIFuncInvokeFunc JNICALL GetPNIFuncInvokeFunc(void) { | ||
return _PNIFuncInvokeFunc; | ||
} | ||
JNIEXPORT void JNICALL SetPNIFuncInvokeFunc(PNIFuncInvokeFunc f) { | ||
_PNIFuncInvokeFunc = f; | ||
} | ||
|
||
static PNIFuncReleaseFunc _PNIFuncReleaseFunc; | ||
|
||
JNIEXPORT PNIFuncReleaseFunc JNICALL GetPNIFuncReleaseFunc(void) { | ||
return _PNIFuncReleaseFunc; | ||
} | ||
JNIEXPORT void JNICALL SetPNIFuncReleaseFunc(PNIFuncReleaseFunc f) { | ||
_PNIFuncReleaseFunc = f; | ||
} | ||
|
||
static PNIRefReleaseFunc _PNIRefReleaseFunc; | ||
|
||
JNIEXPORT PNIRefReleaseFunc JNICALL GetPNIRefReleaseFunc(void) { | ||
return _PNIRefReleaseFunc; | ||
} | ||
JNIEXPORT void JNICALL SetPNIRefReleaseFunc(PNIRefReleaseFunc f) { | ||
_PNIRefReleaseFunc = f; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#ifndef PNI_JNIMOCK_H | ||
#define PNI_JNIMOCK_H | ||
|
||
#include <stdio.h> | ||
#include <stdarg.h> | ||
|
||
#ifdef WIN32 | ||
#define JNIEXPORT __declspec(dllexport) | ||
#else | ||
#define JNIEXPORT __attribute__((visibility("default"))) | ||
#endif | ||
|
||
#ifdef WIN32 | ||
#define JNICALL __stdcall | ||
#else | ||
#define JNICALL | ||
#endif | ||
|
||
#include <inttypes.h> | ||
|
||
typedef int8_t jbyte; | ||
typedef uint16_t jchar; | ||
typedef double jdouble; | ||
typedef float jfloat; | ||
typedef int32_t jint; | ||
typedef int64_t jlong; | ||
typedef int16_t jshort; | ||
typedef uint8_t jboolean; | ||
|
||
#define JNI_FALSE (0) | ||
#define JNI_TRUE (1) | ||
|
||
#define JNI_OK (0) | ||
#define JNI_ERR (-1) | ||
|
||
#endif // PNI_JNIMOCK_H |
Oops, something went wrong.