harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gshiman...@apache.org
Subject svn commit: r646828 - /harmony/enhanced/drlvm/trunk/vm/vmcore/src/lil/ia32/m2n_ia32.cpp
Date Thu, 10 Apr 2008 14:45:45 GMT
Author: gshimansky
Date: Thu Apr 10 07:45:40 2008
New Revision: 646828

URL: http://svn.apache.org/viewvc?rev=646828&view=rev
Log:
Applied patch from HARMONY-4705
[drlvm][jni] JNI transition uses ineffective TLS get


Modified:
    harmony/enhanced/drlvm/trunk/vm/vmcore/src/lil/ia32/m2n_ia32.cpp

Modified: harmony/enhanced/drlvm/trunk/vm/vmcore/src/lil/ia32/m2n_ia32.cpp
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/vmcore/src/lil/ia32/m2n_ia32.cpp?rev=646828&r1=646827&r2=646828&view=diff
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/vmcore/src/lil/ia32/m2n_ia32.cpp (original)
+++ harmony/enhanced/drlvm/trunk/vm/vmcore/src/lil/ia32/m2n_ia32.cpp Thu Apr 10 07:45:40 2008
@@ -21,6 +21,7 @@
 
 #include "open/types.h"
 #include "open/hythread.h"
+#include "thread_helpers.h"
 
 #include "m2n.h"
 #include "m2n_ia32_internal.h"
@@ -175,13 +176,11 @@
 {
     if (reg!=&eax_opnd)
         buf = push(buf,  eax_opnd);
-    buf = push(buf,  ecx_opnd);
-    buf = push(buf,  edx_opnd);
-    buf = call(buf, (char *)get_thread_ptr);
-    buf = pop(buf,  edx_opnd);
-    buf = pop(buf,  ecx_opnd);
+
+    buf = gen_hythread_self_helper(buf);
+
     if (reg!=&eax_opnd) {
-        buf = mov(buf, *reg,  eax_opnd);
+        buf = mov(buf, *reg, eax_opnd);
         buf = pop(buf,  eax_opnd);
     }
     return buf;



Mime
View raw message