Mercurial > hg > graal-compiler
changeset 22428:b8d59cd8a71b
Prefer HubGetClass to raw read
author | Tom Rodriguez <tom.rodriguez@oracle.com> |
---|---|
date | Mon, 10 Aug 2015 16:23:14 -0700 |
parents | f6a2cf072e8b |
children | 8bdcc9c661de |
files | graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/replacements/HotSpotClassSubstitutions.java |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/replacements/HotSpotClassSubstitutions.java Mon Aug 10 16:22:59 2015 -0700 +++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/replacements/HotSpotClassSubstitutions.java Mon Aug 10 16:23:14 2015 -0700 @@ -95,7 +95,7 @@ } public static Class<?> readJavaMirror(KlassPointer klass) { - return PiNode.asNonNullClass(klass.readObject(classMirrorOffset(), CLASS_MIRROR_LOCATION)); + return PiNode.asNonNullClass(HubGetClassNode.readClass(klass)); } public static Class<?> getComponentType(final Class<?> thisObj) {