Mercurial > hg > graal-jvmci-8
changeset 22710:7e7573382a23
Change access to Method::_intrinsic_id back to u1 (JDK8 and JDK9 are different on this)
author | Stefan Anzinger <stefan.anzinger@oracle.com> |
---|---|
date | Thu, 29 Oct 2015 13:13:46 +0100 |
parents | 6832e10a0b97 |
children | 316e768645c0 |
files | jvmci/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotResolvedJavaMethodImpl.java |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/jvmci/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotResolvedJavaMethodImpl.java Wed Oct 28 14:02:20 2015 -0700 +++ b/jvmci/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotResolvedJavaMethodImpl.java Thu Oct 29 13:13:46 2015 +0100 @@ -673,7 +673,8 @@ public int intrinsicId() { HotSpotVMConfig config = config(); - return UNSAFE.getChar(metaspaceMethod + config.methodIntrinsicIdOffset); + // Important: Size of field changed, JDK8 has u1 and JDK9 u2 + return UNSAFE.getByte(metaspaceMethod + config.methodIntrinsicIdOffset) & 0xff; } @Override