8032456: vm/jni/Miscellaneous/misc001/misc00101m1/misc00101m1.html failing on OS X
Reviewed-by: sla, chegar, psandoz
This commit is contained in:
parent
7e46f00b86
commit
65a9d3695b
@ -23,6 +23,8 @@
|
|||||||
* questions.
|
* questions.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
#include "jni.h"
|
#include "jni.h"
|
||||||
#include "jni_util.h"
|
#include "jni_util.h"
|
||||||
#include "dlfcn.h"
|
#include "dlfcn.h"
|
||||||
@ -40,7 +42,11 @@ void* getProcessHandle() {
|
|||||||
if (procHandle != NULL) {
|
if (procHandle != NULL) {
|
||||||
return procHandle;
|
return procHandle;
|
||||||
}
|
}
|
||||||
|
#ifdef __APPLE__
|
||||||
|
procHandle = (void*)dlopen(NULL, RTLD_FIRST);
|
||||||
|
#else
|
||||||
procHandle = (void*)dlopen(NULL, RTLD_LAZY);
|
procHandle = (void*)dlopen(NULL, RTLD_LAZY);
|
||||||
|
#endif
|
||||||
return procHandle;
|
return procHandle;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user