hotspot/src/jdk.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotConstantPool.java
equal
deleted
inserted
replaced
194 * @param metaspaceConstantPool a metaspace ConstantPool object |
194 * @param metaspaceConstantPool a metaspace ConstantPool object |
195 * @return the {@link HotSpotConstantPool} corresponding to {@code metaspaceConstantPool} |
195 * @return the {@link HotSpotConstantPool} corresponding to {@code metaspaceConstantPool} |
196 */ |
196 */ |
197 @SuppressWarnings("unused") |
197 @SuppressWarnings("unused") |
198 private static HotSpotConstantPool fromMetaspace(long metaspaceConstantPool) { |
198 private static HotSpotConstantPool fromMetaspace(long metaspaceConstantPool) { |
199 return new HotSpotConstantPool(metaspaceConstantPool); |
199 HotSpotConstantPool cp = new HotSpotConstantPool(metaspaceConstantPool); |
|
200 runtime().metaAccessContext.add(cp); |
|
201 return cp; |
200 } |
202 } |
201 |
203 |
202 private HotSpotConstantPool(long metaspaceConstantPool) { |
204 private HotSpotConstantPool(long metaspaceConstantPool) { |
203 this.metaspaceConstantPool = metaspaceConstantPool; |
205 this.metaspaceConstantPool = metaspaceConstantPool; |
204 } |
206 } |