A few more trivial write barrier calls.
Change-Id: I4b0f3c4347eed9a2e0a494ae1382065c026d5c40
diff --git a/src/java_lang_System.cc b/src/java_lang_System.cc
index 2bb767d..398eeb9 100644
--- a/src/java_lang_System.cc
+++ b/src/java_lang_System.cc
@@ -187,8 +187,7 @@
if (sameDimensions && srcComponentType->InstanceOf(dstComponentType)) {
// Yes. Bulk copy.
move32(dstBytes + dstPos * width, srcBytes + srcPos * width, length * width);
- UNIMPLEMENTED(WARNING) << "write barriers in System.arraycopy";
- //dvmWriteBarrierArray(dstArray, dstPos, dstPos + length);
+ Heap::WriteBarrier(dstArray);
return;
}
@@ -228,8 +227,7 @@
}
move32(dstBytes + dstPos * width, srcBytes + srcPos * width, copyCount * width);
- UNIMPLEMENTED(WARNING) << "write barriers in System.arraycopy";
- //dvmWriteBarrierArray(dstArray, 0, copyCount);
+ Heap::WriteBarrier(dstArray);
if (copyCount != length) {
std::string actualSrcType(PrettyType(srcObj[copyCount]));
std::string dstType(PrettyType(dstArray));