Mercurial > hg > graal-jvmci-8
changeset 22708:8017f84cce74
method intrinsic ids are 16-bit so use Unsafe.getChar(), not Unsafe.getByte() to read them
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Tue, 27 Oct 2015 13:33:28 +0100 |
parents | 829a9e1ccf23 |
children | 6832e10a0b97 |
files | jvmci/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotResolvedJavaMethodImpl.java |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/jvmci/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotResolvedJavaMethodImpl.java Sun Oct 25 10:49:26 2015 +0100 +++ b/jvmci/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotResolvedJavaMethodImpl.java Tue Oct 27 13:33:28 2015 +0100 @@ -673,7 +673,7 @@ public int intrinsicId() { HotSpotVMConfig config = config(); - return UNSAFE.getByte(metaspaceMethod + config.methodIntrinsicIdOffset) & 0xff; + return UNSAFE.getChar(metaspaceMethod + config.methodIntrinsicIdOffset); } @Override