Signed-off-by: Tomek Grabiec <[email protected]>
---
vm/jni-interface.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/vm/jni-interface.c b/vm/jni-interface.c
index 4dfecb1..5aeed36 100644
--- a/vm/jni-interface.c
+++ b/vm/jni-interface.c
@@ -559,6 +559,8 @@ vm_jni_get_byte_array_elements(struct vm_jni_env *env,
jobject array,
{
jbyte *result;
+ enter_vm_from_jni();
+
if (!vm_class_is_array_class(array->class) ||
vm_class_get_array_element_class(array->class) != vm_byte_class)
return NULL;
@@ -580,6 +582,8 @@ static void
vm_jni_release_byte_array_elements(struct vm_jni_env *env, jobject array,
jbyte *elems, jint mode)
{
+ enter_vm_from_jni();
+
if (!vm_class_is_array_class(array->class) ||
vm_class_get_array_element_class(array->class) != vm_byte_class)
return;
@@ -599,6 +603,8 @@ vm_jni_get_double_array_elements(struct vm_jni_env *env,
jobject array,
{
jdouble *result;
+ enter_vm_from_jni();
+
if (!vm_class_is_array_class(array->class) ||
vm_class_get_array_element_class(array->class) != vm_double_class)
return NULL;
@@ -620,6 +626,8 @@ static void
vm_jni_release_double_array_elements(struct vm_jni_env *env, jobject array,
jdouble *elems, jint mode)
{
+ enter_vm_from_jni();
+
if (!vm_class_is_array_class(array->class) ||
vm_class_get_array_element_class(array->class) != vm_double_class)
return;
@@ -636,6 +644,8 @@ vm_jni_release_double_array_elements(struct vm_jni_env
*env, jobject array,
static void *
vm_jni_get_direct_buffer_address(struct vm_jni_env *env, jobject buf)
{
+ enter_vm_from_jni();
+
/* We can't return direct buffer because we use machine word size
elements for arrays. */
return NULL;
--
1.6.0.6
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Jatovm-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jatovm-devel