Mercurial > hg > graal-jvmci-8
diff jvmci/jdk.vm.ci.meta/src/jdk/vm/ci/meta/MemoryAccessProvider.java @ 24111:8abcd8e1285d
missing checks in HotSpotMemoryAccessProviderImpl can cause VM assertions to fail (JDK-8177673)
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Thu, 30 Mar 2017 21:18:43 +0200 |
parents | c9993da505a0 |
children | 8cf4cf3f9f2a |
line wrap: on
line diff
--- a/jvmci/jdk.vm.ci.meta/src/jdk/vm/ci/meta/MemoryAccessProvider.java Mon Mar 20 10:46:02 2017 +0100 +++ b/jvmci/jdk.vm.ci.meta/src/jdk/vm/ci/meta/MemoryAccessProvider.java Thu Mar 30 21:18:43 2017 +0200 @@ -35,6 +35,8 @@ * @param displacement the displacement within the object in bytes * @param bits the number of bits to read from memory * @return the read value encapsulated in a {@link JavaConstant} object of {@link JavaKind} kind + * or {@code null} if {@code base} is a boxed object and the read address does not + * denote a location holding an {@code kind} value * @throws IllegalArgumentException if {@code kind} is {@link JavaKind#Void} or not * {@linkplain JavaKind#isPrimitive() primitive} kind or {@code bits} is not 8, 16, * 32 or 64