The RedefineClasses merges constant pools and rewrite in the VM_RedefineClasses::merge_cp_and_rewrite(). The function VM_RedefineClasses::rewrite_cp_refs_in_method() that is called recursively must support the invokedynamic bytecode. For details, please, refer to the interpreter/rewrite.cpp::Rewriter::rewrite_invokedynamic().
|