comparison jvmci/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotResolvedJavaMethodImpl.java @ 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 ce4bec6db0b2
children 7e7573382a23
comparison
equal deleted inserted replaced
22707:829a9e1ccf23 22708:8017f84cce74
671 } 671 }
672 } 672 }
673 673
674 public int intrinsicId() { 674 public int intrinsicId() {
675 HotSpotVMConfig config = config(); 675 HotSpotVMConfig config = config();
676 return UNSAFE.getByte(metaspaceMethod + config.methodIntrinsicIdOffset) & 0xff; 676 return UNSAFE.getChar(metaspaceMethod + config.methodIntrinsicIdOffset);
677 } 677 }
678 678
679 @Override 679 @Override
680 public JavaConstant invoke(JavaConstant receiver, JavaConstant[] arguments) { 680 public JavaConstant invoke(JavaConstant receiver, JavaConstant[] arguments) {
681 assert !isConstructor(); 681 assert !isConstructor();