jni.cc (_Jv_JNIMethod::call): Use ffi_java_raw_call instead of ffi_raw_call if FFI_NATIVE_RAW_API is not defined.

* jni.cc (_Jv_JNIMethod::call): Use ffi_java_raw_call instead of
	ffi_raw_call if FFI_NATIVE_RAW_API is not defined.

From-SVN: r89051
This commit is contained in:
Ulrich Weigand 2004-10-14 20:36:37 +00:00 committed by Ulrich Weigand
parent b419bac764
commit ed67425158
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2004-10-14 Ulrich Weigand <uweigand@de.ibm.com>
* jni.cc (_Jv_JNIMethod::call): Use ffi_java_raw_call instead of
ffi_raw_call if FFI_NATIVE_RAW_API is not defined.
2004-10-13 Andrew Haley <aph@redhat.com>
* interpret.cc (_Jv_InterpMethod::run): Initialize

View File

@ -2213,8 +2213,13 @@ _Jv_JNIMethod::call (ffi_cif *, void *ret, ffi_raw *args, void *__this)
memcpy (&real_args[offset], args, _this->args_raw_size);
// The actual call to the JNI function.
#if FFI_NATIVE_RAW_API
ffi_raw_call (&_this->jni_cif, (void (*)()) _this->function,
ret, real_args);
#else
ffi_java_raw_call (&_this->jni_cif, (void (*)()) _this->function,
ret, real_args);
#endif
if (sync != NULL)
_Jv_MonitorExit (sync);