diff options
| author | 2012-03-08 21:05:27 -0800 | |
|---|---|---|
| committer | 2012-03-09 15:37:46 -0800 | |
| commit | b3bd5f07884f5a1f2b84224363b1372d7c28d447 (patch) | |
| tree | 6e2997ab64b4a4f32d7ef539a4649adc736ea553 /src/java_lang_System.cc | |
| parent | ddbd01ac1660d57416879d5a576482f1048dde64 (diff) | |
Refactor the compilers out of libart.
This builds three separate compilers and dynamically links with the right one
at runtime.
Change-Id: I59d22b9884f41de733c09f97e29ee290236d5f4b
Diffstat (limited to 'src/java_lang_System.cc')
| -rw-r--r-- | src/java_lang_System.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/java_lang_System.cc b/src/java_lang_System.cc index b48cee9941..22a9cc6832 100644 --- a/src/java_lang_System.cc +++ b/src/java_lang_System.cc @@ -192,7 +192,7 @@ void System_arraycopy(JNIEnv* env, jclass, jobject javaSrc, jint srcPos, jobject // 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::WriteBarrierArray(dstArray, dstPos, length); + Runtime::Current()->GetHeap()->WriteBarrierArray(dstArray, dstPos, length); return; } @@ -233,7 +233,7 @@ void System_arraycopy(JNIEnv* env, jclass, jobject javaSrc, jint srcPos, jobject } } - Heap::WriteBarrierArray(dstArray, dstPos, length); + Runtime::Current()->GetHeap()->WriteBarrierArray(dstArray, dstPos, length); if (i != length) { std::string actualSrcType(PrettyTypeOf(o)); std::string dstType(PrettyTypeOf(dstArray)); |