src/share/vm/classfile/bytecodeAssembler.cpp

Print this page

        

@@ -48,11 +48,11 @@
     return _orig;
   }
 
   ConstantPool* cp = ConstantPool::allocate(
       _orig->pool_holder()->class_loader_data(),
-      _orig->length() + _entries.length(), CHECK_NULL);
+      _orig->length() + _entries.length(), _orig->patched(), CHECK_NULL);
 
   cp->set_pool_holder(_orig->pool_holder());
   _orig->copy_cp_to(1, _orig->length() - 1, cp, 1, CHECK_NULL);
 
   for (int i = 0; i < _entries.length(); ++i) {