summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Hao <jeffhao@google.com>2014-06-26 22:26:46 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2014-06-26 18:02:05 +0000
commit57d2d897b8dccee54ee88fdf8e851b15f8a35d2a (patch)
treefd432bf275c99a5eebc218472787a1750910fd1a
parent42a6d80d91d8f33162b8946e6fc05e8b43833ca7 (diff)
parent5bd063897de96e8560638d779c87670834cdba14 (diff)
downloadlibcore-57d2d897b8dccee54ee88fdf8e851b15f8a35d2a.zip
libcore-57d2d897b8dccee54ee88fdf8e851b15f8a35d2a.tar.gz
libcore-57d2d897b8dccee54ee88fdf8e851b15f8a35d2a.tar.bz2
Merge "Fixed build for arraycopy with objects."
-rw-r--r--luni/src/main/java/java/lang/System.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/luni/src/main/java/java/lang/System.java b/luni/src/main/java/java/lang/System.java
index 3bd443f..4673d44 100644
--- a/luni/src/main/java/java/lang/System.java
+++ b/luni/src/main/java/java/lang/System.java
@@ -192,7 +192,7 @@ public final class System {
if (src.getClass() != dst.getClass() || dst.getClass() != Object[].class ||
dst.getClass().isAssignableFrom(src.getClass())) {
// Call the native version if we can't easily deal with it here.
- arraycopy(src, srcPos, dst, dstPos, length);
+ arraycopy((Object) src, srcPos, (Object) dst, dstPos, length);
}
if (src == null) {
throw new NullPointerException("src == null");
@@ -223,7 +223,7 @@ public final class System {
}
} else {
// Call the native version for longer arrays.
- arraycopy(src, srcPos, dst, dstPos, length);
+ arraycopy((Object) src, srcPos, (Object) dst, dstPos, length);
}
}
@@ -497,7 +497,7 @@ public final class System {
* (non-native) version of arraycopy() instead of the native
* version. See b/7103825.
*/
- private static final int ARRAYCOPY_SHORT_FLOAT_ARRAY_THRESHOLD = 2;
+ private static final int ARRAYCOPY_SHORT_FLOAT_ARRAY_THRESHOLD = 16;
/**
* The float[] specialized version of arraycopy().