src/hotspot/share/classfile/bytecodeAssembler.cpp
changeset 59056 15936b142f86
parent 58273 08a5148e7c4e
equal deleted inserted replaced
59055:57ad70bcf06c 59056:15936b142f86
    52   ConstantPool* cp = ConstantPool::allocate(
    52   ConstantPool* cp = ConstantPool::allocate(
    53       _orig->pool_holder()->class_loader_data(),
    53       _orig->pool_holder()->class_loader_data(),
    54       _orig->length() + _entries.length(), CHECK_NULL);
    54       _orig->length() + _entries.length(), CHECK_NULL);
    55 
    55 
    56   cp->set_pool_holder(_orig->pool_holder());
    56   cp->set_pool_holder(_orig->pool_holder());
    57   _orig->copy_cp_to(1, _orig->length() - 1, cp, 1, CHECK_NULL);
    57   constantPoolHandle cp_h(THREAD, cp);
       
    58   _orig->copy_cp_to(1, _orig->length() - 1, cp_h, 1, CHECK_NULL);
    58 
    59 
    59   // Preserve dynamic constant information from the original pool
    60   // Preserve dynamic constant information from the original pool
    60   if (_orig->has_dynamic_constant()) {
    61   if (_orig->has_dynamic_constant()) {
    61     cp->set_has_dynamic_constant();
    62     cp->set_has_dynamic_constant();
    62   }
    63   }