harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wjwashb...@apache.org
Subject svn commit: r440531 - /incubator/harmony/enhanced/drlvm/trunk/vm/MMTk/ext/vm/HarmonyDRLVM/org/apache/HarmonyDRLVM/mm/mmtk/Barriers.java
Date Tue, 05 Sep 2006 23:43:08 GMT
Author: wjwashburn
Date: Tue Sep  5 16:43:07 2006
New Revision: 440531

URL: http://svn.apache.org/viewvc?view=rev&rev=440531
Log:
mods to support write barrier

Modified:
    incubator/harmony/enhanced/drlvm/trunk/vm/MMTk/ext/vm/HarmonyDRLVM/org/apache/HarmonyDRLVM/mm/mmtk/Barriers.java

Modified: incubator/harmony/enhanced/drlvm/trunk/vm/MMTk/ext/vm/HarmonyDRLVM/org/apache/HarmonyDRLVM/mm/mmtk/Barriers.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/drlvm/trunk/vm/MMTk/ext/vm/HarmonyDRLVM/org/apache/HarmonyDRLVM/mm/mmtk/Barriers.java?view=diff&rev=440531&r1=440530&r2=440531
==============================================================================
--- incubator/harmony/enhanced/drlvm/trunk/vm/MMTk/ext/vm/HarmonyDRLVM/org/apache/HarmonyDRLVM/mm/mmtk/Barriers.java
(original)
+++ incubator/harmony/enhanced/drlvm/trunk/vm/MMTk/ext/vm/HarmonyDRLVM/org/apache/HarmonyDRLVM/mm/mmtk/Barriers.java
Tue Sep  5 16:43:07 2006
@@ -35,9 +35,18 @@
                                            ObjectReference target, Offset offset, 
                                            int locationMetadata, int mode) 
     throws InlinePragma {
-    System.out.println("org.apache.HarmonyDRLVM.mm.mmtk.Barriers -- performWriteInBarrier
was called" );
+      /*
+      System.out.println("org.apache.HarmonyDRLVM.mm.mmtk.Barriers.GenMutator.performWriteInBarrier(),
ref =" +
+          Integer.toHexString(ref.toAddress().toInt()) + 
+          " slot = " + Integer.toHexString(slot.toInt()) +
+          " target = " + Integer.toHexString(target.toAddress().toInt()) +
+          " offset = " + Integer.toHexString(offset.toInt()) + " locationMetadata = " + 
+          Integer.toHexString(locationMetadata) + " mode = " + Integer.toHexString(mode)
+          );
+          */
     //VM.assertions._assert(false);
-
+    Address addr = ref.toAddress();
+    //JIT should have already done this ---->  addr.store(target, offset);
   }
 
   /**
@@ -58,7 +67,7 @@
                                            int locationMetadata, int mode)
     throws InlinePragma { 
     System.out.println("org.apache.HarmonyDRLVM.mm.mmtk.Barriers -- performWriteInBarrierAtomic
was called" );
-    //VM.assertions._assert(false);
+    VM.assertions._assert(false);
     return ref;  // keep the compiler happy
   }
 
@@ -83,7 +92,19 @@
           oneShot = true;
       }
       dst[index] = value;
-      //VM.assertions._assert(false);
+      /*
+      ObjectReference orDst = ObjectReference.fromObject(dst);
+      Address addrDst = orDst.toAddress();
+      Address addrElementZero = addrDst.plus(12);
+      Address addrElementIndex = addrElementZero.plus(index * 1);
+      addrElementIndex.store(value);
+      if (dst[index] != value) 
+      {
+          System.out.println("setArrayNoBarrierStatic() ERROR: dst[index] = " + dst[index]
+            + " value = " + value);
+          VM.assertions._assert(false);
+      }
+      */
   }
 
   /**



Mime
View raw message