(SIGAR-201) JNIEnv->ExceptionCheck to avoid possible SEGV on OutOfMemoryError

This commit is contained in:
Doug MacEachern committed 2010-04-15 10:55:09 -07:00
1 parent 6c1f0a9871
commit c46af75d74
7 files changed
+103 -15

No files matched your search

+3
View File
@@ -33,6 +33,9 @@
#define SIGAR_CLASS_SIG(name) \
"L" SIGAR_PACKAGE name ";"
/* CHeck EXception */
#define SIGAR_CHEX if (JENV->ExceptionCheck(env)) return NULL
typedef struct {
JNIEnv *env;
jobject obj;