diff options
| author | 2011-09-18 11:39:12 -0700 | |
|---|---|---|
| committer | 2011-09-18 11:39:12 -0700 | |
| commit | b6db9d29038a0e8dea8a399b155bd60448ec5e97 (patch) | |
| tree | f0a0f96027d1732b21839dd088eb1708ece2cf4b /src/java_lang_System.cc | |
| parent | 03c99df35373efa1924d0ab9c0d21f9061afe8ea (diff) | |
Convert a DCHECK to a COMPILE_ASSERT
Change-Id: I3719ef5ad7339bba4b21bbb96b2e4f0554846d4a
Diffstat (limited to 'src/java_lang_System.cc')
| -rw-r--r-- | src/java_lang_System.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/java_lang_System.cc b/src/java_lang_System.cc index 4eaaa6667a..8aeefcd0c1 100644 --- a/src/java_lang_System.cc +++ b/src/java_lang_System.cc @@ -185,7 +185,7 @@ void System_arraycopy(JNIEnv* env, jclass, jobject javaSrc, jint srcPos, jobject const size_t width = sizeof(Object*); if (dstComponentType->IsAssignableFrom(srcComponentType)) { // Yes. Bulk copy. - DCHECK_EQ(width, sizeof(uint32_t)); + 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); return; |