src/hotspot/share/oops/constantPool.cpp
changeset 53584 f72661ff0294
parent 53560 b92b0baa7afd
child 53590 ce36f8180d03
equal deleted inserted replaced
53583:051b5f7510d5 53584:f72661ff0294
  2521     } else if (tag.is_string()) {
  2521     } else if (tag.is_string()) {
  2522       CPSlot entry = slot_at(i);
  2522       CPSlot entry = slot_at(i);
  2523       guarantee(entry.get_symbol()->refcount() != 0, "should have nonzero reference count");
  2523       guarantee(entry.get_symbol()->refcount() != 0, "should have nonzero reference count");
  2524     }
  2524     }
  2525   }
  2525   }
  2526   if (cache() != NULL) {
       
  2527     // Note: cache() can be NULL before a class is completely setup or
       
  2528     // in temporary constant pools used during constant pool merging
       
  2529     guarantee(cache()->is_constantPoolCache(), "should be constant pool cache");
       
  2530   }
       
  2531   if (pool_holder() != NULL) {
  2526   if (pool_holder() != NULL) {
  2532     // Note: pool_holder() can be NULL in temporary constant pools
  2527     // Note: pool_holder() can be NULL in temporary constant pools
  2533     // used during constant pool merging
  2528     // used during constant pool merging
  2534     guarantee(pool_holder()->is_klass(),    "should be klass");
  2529     guarantee(pool_holder()->is_klass(),    "should be klass");
  2535   }
  2530   }