Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1b848d48 authored by Mathieu Chartier's avatar Mathieu Chartier Committed by Android (Google) Code Review
Browse files

Merge "Change EmptyArray System.identityHashCode to Object.hashCode." into lmp-dev

parents 20dbc370 b4e5061f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -107,7 +107,7 @@ public class ArrayUtils
            return (T[]) EmptyArray.OBJECT;
        }

        int bucket = ((System.identityHashCode(kind) / 8) & 0x7FFFFFFF) % CACHE_SIZE;
        int bucket = (kind.hashCode() & 0x7FFFFFFF) % CACHE_SIZE;
        Object cache = sCache[bucket];

        if (cache == null || cache.getClass().getComponentType() != kind) {