From 2239fc1b8955313cb880a53a73447daeb89e6f11 Mon Sep 17 00:00:00 2001 From: Ian Rogers Date: Wed, 21 Aug 2013 22:06:43 -0700 Subject: Fix arrayIndexScale. Bug 10430382. (cherry picked from commit 9da79116014d4396d33a9a1ada891c49aed7c6a3) Change-Id: Ife41904b1580dae74ae17d49c799a1a81d4a18bc --- libart/src/main/java/sun/misc/Unsafe.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libart/src/main/java/sun/misc/Unsafe.java b/libart/src/main/java/sun/misc/Unsafe.java index aa7b6de..0a4d8b2 100644 --- a/libart/src/main/java/sun/misc/Unsafe.java +++ b/libart/src/main/java/sun/misc/Unsafe.java @@ -101,7 +101,7 @@ public final class Unsafe { throw new IllegalArgumentException("Valid for array classes only: " + clazz); } // TODO: make the following not specific to the object model. - if (!clazz.isPrimitive()) { + if (!component.isPrimitive()) { return 4; } else if (component == long.class || component == double.class) { return 8; -- cgit v1.1