Mercurial > hg > graal-jvmci-8
comparison jvmci/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotMemoryAccessProvider.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 | b5557b757040 |
children |
comparison
equal
deleted
inserted
replaced
24110:a8378ff1936d | 24111:8abcd8e1285d |
---|---|
29 /** | 29 /** |
30 * HotSpot specific extension of {@link MemoryAccessProvider}. | 30 * HotSpot specific extension of {@link MemoryAccessProvider}. |
31 */ | 31 */ |
32 public interface HotSpotMemoryAccessProvider extends MemoryAccessProvider { | 32 public interface HotSpotMemoryAccessProvider extends MemoryAccessProvider { |
33 | 33 |
34 /** | |
35 * @throws IllegalArgumentException if the address computed from {@code base} and | |
36 * {@code displacement} does not denote a location holding a narrow oop | |
37 */ | |
34 JavaConstant readNarrowOopConstant(Constant base, long displacement); | 38 JavaConstant readNarrowOopConstant(Constant base, long displacement); |
35 | 39 |
36 Constant readKlassPointerConstant(Constant base, long displacement); | 40 Constant readKlassPointerConstant(Constant base, long displacement); |
37 | 41 |
38 Constant readNarrowKlassPointerConstant(Constant base, long displacement); | 42 Constant readNarrowKlassPointerConstant(Constant base, long displacement); |