diff options
author | You Kim <you.kim72@gmail.com> | 2015-02-26 15:02:05 +0900 |
---|---|---|
committer | Narayan Kamath <narayan@google.com> | 2015-02-26 17:31:00 +0000 |
commit | 0116157aaedfc402f2ea5d5d48a730b8283aef54 (patch) | |
tree | 6180446b2dd4f2e5cbd42742ed0b254ec970cb44 /libart | |
parent | 5889c5c8d2e814e9319135f52f1947c463c82561 (diff) | |
download | libcore-0116157aaedfc402f2ea5d5d48a730b8283aef54.zip libcore-0116157aaedfc402f2ea5d5d48a730b8283aef54.tar.gz libcore-0116157aaedfc402f2ea5d5d48a730b8283aef54.tar.bz2 |
Fix incorrect cache key.
getProxyClass(ClassLoader, Class<?>...) would hit a slow
path more often than we needed to because we were using
interfaceSet (and not interfaceList) as the key.
Change-Id: I2a0f81ea401d5adbdb31cc35bf04b3f0492cca8e
Diffstat (limited to 'libart')
-rwxr-xr-x[-rw-r--r--] | libart/src/main/java/java/lang/reflect/Proxy.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libart/src/main/java/java/lang/reflect/Proxy.java b/libart/src/main/java/java/lang/reflect/Proxy.java index 31f9cd9..e47b27b 100644..100755 --- a/libart/src/main/java/java/lang/reflect/Proxy.java +++ b/libart/src/main/java/java/lang/reflect/Proxy.java @@ -179,7 +179,7 @@ public class Proxy implements Serializable { Class<?> result; synchronized (loader.proxyCache) { - result = loader.proxyCache.get(interfaceSet); + result = loader.proxyCache.get(interfaceList); if (result == null) { String name = baseName + nextClassNameIndex++; result = generateProxy(name, interfaces, loader, methodsArray, exceptionsArray); |