harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gshiman...@apache.org
Subject svn commit: r579149 - /harmony/enhanced/drlvm/trunk/vm/vmcore/src/jni/jni_method.cpp
Date Tue, 25 Sep 2007 09:36:10 GMT
Author: gshimansky
Date: Tue Sep 25 02:36:09 2007
New Revision: 579149

URL: http://svn.apache.org/viewvc?rev=579149&view=rev
Log:
Applied fix for HARMONY-4846
[drlvm][jni] CallVoidMethod crashes VM if applied to Non-void method

I added a non-used variable for return value that isn't needed for void methods.


Modified:
    harmony/enhanced/drlvm/trunk/vm/vmcore/src/jni/jni_method.cpp

Modified: harmony/enhanced/drlvm/trunk/vm/vmcore/src/jni/jni_method.cpp
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/vmcore/src/jni/jni_method.cpp?rev=579149&r1=579148&r2=579149&view=diff
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/vmcore/src/jni/jni_method.cpp (original)
+++ harmony/enhanced/drlvm/trunk/vm/vmcore/src/jni/jni_method.cpp Tue Sep 25 02:36:09 2007
@@ -219,12 +219,13 @@
 {
     TRACE2("jni", "CallVoidMethodA called, id = " << methodID);
     assert(hythread_is_suspend_enabled());
+    jvalue UNREF result;
     
     if (exn_raised()) return;
 
     String *name = ((Method*)methodID)->get_name();
     bool non_virtual = name == VM_Global_State::loader_env->Init_String;
-    call_method_no_ref_result(jni_env, obj, methodID, args, 0, non_virtual);
+    call_method_no_ref_result(jni_env, obj, methodID, args, &result, non_virtual);
 } //CallVoidMethodA
 
 



Mime
View raw message