harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From x..@apache.org
Subject svn commit: r573997 - in /harmony/enhanced/drlvm/trunk/vm/gc_gen: javasrc/org/apache/harmony/drlvm/gc_gen/GCHelper.java src/jni/java_natives.cpp
Date Sun, 09 Sep 2007 11:53:44 GMT
Author: xli
Date: Sun Sep  9 04:53:44 2007
New Revision: 573997

URL: http://svn.apache.org/viewvc?rev=573997&view=rev
Log:
use long to represent Address type in GC helper code. This is a workaround due to JIT limitation
in processing Address magic type.

Modified:
    harmony/enhanced/drlvm/trunk/vm/gc_gen/javasrc/org/apache/harmony/drlvm/gc_gen/GCHelper.java
    harmony/enhanced/drlvm/trunk/vm/gc_gen/src/jni/java_natives.cpp

Modified: harmony/enhanced/drlvm/trunk/vm/gc_gen/javasrc/org/apache/harmony/drlvm/gc_gen/GCHelper.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/gc_gen/javasrc/org/apache/harmony/drlvm/gc_gen/GCHelper.java?rev=573997&r1=573996&r2=573997&view=diff
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/gc_gen/javasrc/org/apache/harmony/drlvm/gc_gen/GCHelper.java
(original)
+++ harmony/enhanced/drlvm/trunk/vm/gc_gen/javasrc/org/apache/harmony/drlvm/gc_gen/GCHelper.java
Sun Sep  9 04:53:44 2007
@@ -76,7 +76,7 @@
        be a constant in future.
     */
 
-    public static Address NOS_BOUNDARY = getNosBoundary();
+    public static Address NOS_BOUNDARY = Address.fromLong(getNosBoundary());
     public static boolean GEN_MODE = getGenMode();
 
     @Inline
@@ -93,7 +93,7 @@
 
     private static native int helperCallback();
     private static native boolean getGenMode(); 
-    private static native Address getNosBoundary();    
+    private static native long getNosBoundary();    
     private static native int TLSGCOffset();
 }
 

Modified: harmony/enhanced/drlvm/trunk/vm/gc_gen/src/jni/java_natives.cpp
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/gc_gen/src/jni/java_natives.cpp?rev=573997&r1=573996&r2=573997&view=diff
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/gc_gen/src/jni/java_natives.cpp (original)
+++ harmony/enhanced/drlvm/trunk/vm/gc_gen/src/jni/java_natives.cpp Sun Sep  9 04:53:44 2007
@@ -37,9 +37,9 @@
     return (jint)tls_gc_offset;
 }
 
-JNIEXPORT jobject JNICALL Java_org_apache_harmony_drlvm_gc_1gen_GCHelper_getNosBoundary(JNIEnv
*e, jclass c)
+JNIEXPORT jlong JNICALL Java_org_apache_harmony_drlvm_gc_1gen_GCHelper_getNosBoundary(JNIEnv
*e, jclass c)
 {
-    return (jobject)nos_boundary;
+    return (jlong)nos_boundary;
 }
 
 JNIEXPORT jboolean JNICALL Java_org_apache_harmony_drlvm_gc_1gen_GCHelper_getGenMode(JNIEnv
*e, jclass c)



Mime
View raw message