hotspot/src/jdk.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotConstantPool.java
changeset 39426 ea04b4d9d862
parent 39421 a9652c919db8
child 39443 ca6dfb34e46c
equal deleted inserted replaced
39425:576058e9f728 39426:ea04b4d9d862
   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     }