Mark non-image spaces and use write barrier for image spaces.

Don't mark string and class roots that are in the image, alloc space
references will be caught by the write barrier.

Change-Id: Idcf9e4ede3b83556d4f8a01276273726dc6eea46
diff --git a/src/java_lang_System.cc b/src/java_lang_System.cc
index 45a2aee..a9652cc 100644
--- a/src/java_lang_System.cc
+++ b/src/java_lang_System.cc
@@ -189,7 +189,7 @@
     // Yes. Bulk copy.
     COMPILE_ASSERT(sizeof(width) == sizeof(uint32_t), move32_assumes_Object_references_are_32_bit);
     move32(dstBytes + dstPos * width, srcBytes + srcPos * width, length * width);
-    Heap::WriteBarrier(dstArray);
+    Heap::WriteBarrierArray(dstArray, dstPos, length);
     return;
   }
 
@@ -229,7 +229,7 @@
   }
 
   move32(dstBytes + dstPos * width, srcBytes + srcPos * width, copyCount * width);
-  Heap::WriteBarrier(dstArray);
+  Heap::WriteBarrierArray(dstArray, dstPos, length);
   if (copyCount != length) {
     std::string actualSrcType(PrettyTypeOf(srcObj[copyCount]));
     std::string dstType(PrettyTypeOf(dstArray));