[vmkit-commits] [vmkit] r82136 - /vmkit/trunk/lib/JnJVM/VMCore/JavaRuntimeJIT.cpp

Nicolas Geoffray nicolas.geoffray at lip6.fr
Thu Sep 17 02:23:00 PDT 2009


Author: geoffray
Date: Thu Sep 17 04:23:00 2009
New Revision: 82136

URL: http://llvm.org/viewvc/llvm-project?rev=82136&view=rev
Log:
Give the native Java function as initiating the JNI call, not the
Java function calling the native Java function.


Modified:
    vmkit/trunk/lib/JnJVM/VMCore/JavaRuntimeJIT.cpp

Modified: vmkit/trunk/lib/JnJVM/VMCore/JavaRuntimeJIT.cpp
URL: http://llvm.org/viewvc/llvm-project/vmkit/trunk/lib/JnJVM/VMCore/JavaRuntimeJIT.cpp?rev=82136&r1=82135&r2=82136&view=diff

==============================================================================
--- vmkit/trunk/lib/JnJVM/VMCore/JavaRuntimeJIT.cpp (original)
+++ vmkit/trunk/lib/JnJVM/VMCore/JavaRuntimeJIT.cpp Thu Sep 17 04:23:00 2009
@@ -405,7 +405,7 @@
   *oldLocalReferencesNumber = th->currentAddedReferences;
   th->currentAddedReferences = localReferencesNumber;
 
-  th->startJNI(2);
+  th->startJNI(1);
   void** val = (void**)th->addresses.back();
 
   return val;





More information about the vmkit-commits mailing list