summaryrefslogtreecommitdiff
path: root/src/java_lang_System.cc
diff options
context:
space:
mode:
author Elliott Hughes <enh@google.com> 2011-09-13 15:22:36 -0700
committer Elliott Hughes <enh@google.com> 2011-09-13 15:22:36 -0700
commit3a4f8df8f75cbb9495b84a96c60e12fcce65ccf9 (patch)
tree2e8b9d3a2ddd6e987162c48f0b0fb50577d3e7fd /src/java_lang_System.cc
parentf0cde549bed96e16401a347a4511b59130c61e84 (diff)
A few more trivial write barrier calls.
Change-Id: I4b0f3c4347eed9a2e0a494ae1382065c026d5c40
Diffstat (limited to 'src/java_lang_System.cc')
-rw-r--r--src/java_lang_System.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/java_lang_System.cc b/src/java_lang_System.cc
index 2bb767d5b7..398eeb9403 100644
--- a/src/java_lang_System.cc
+++ b/src/java_lang_System.cc
@@ -187,8 +187,7 @@ void System_arraycopy(JNIEnv* env, jclass, jobject javaSrc, jint srcPos, jobject
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 @@ void System_arraycopy(JNIEnv* env, jclass, jobject javaSrc, jint srcPos, jobject
}
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));