< prev index next >

src/hotspot/share/prims/jvmtiRedefineClasses.cpp

Print this page
rev 52749 : Bootstrap method consolidation
* clean up and simplify JDK support code for BSM invocation
* simplify JVM bootstrap handshake: use BootstrapCallInfo only
* remove unused JVM paths and data fields
* move bootstrap argument processing from MethodHandleNatives to ConstantPool
* remove ConstantGroup; merge argument access into BootstrapCallInfo
* adjust BSM argument access: remove copyArguments, add argumentRef API
* add metadata-free BSM modes, including symbolic arguments from CP

*** 504,518 **** // this is an indirect CP entry so it needs special handling case JVM_CONSTANT_Dynamic: // fall through case JVM_CONSTANT_InvokeDynamic: { // Index of the bootstrap specifier in the operands array ! int old_bs_i = scratch_cp->invoke_dynamic_bootstrap_specifier_index(scratch_i); int new_bs_i = find_or_append_operand(scratch_cp, old_bs_i, merge_cp_p, merge_cp_length_p, THREAD); // The bootstrap method NameAndType_info index ! int old_ref_i = scratch_cp->invoke_dynamic_name_and_type_ref_index_at(scratch_i); int new_ref_i = find_or_append_indirect_entry(scratch_cp, old_ref_i, merge_cp_p, merge_cp_length_p, THREAD); if (new_bs_i != old_bs_i) { log_trace(redefine, class, constantpool) ("Dynamic entry@%d bootstrap_method_attr_index change: %d to %d", --- 504,518 ---- // this is an indirect CP entry so it needs special handling case JVM_CONSTANT_Dynamic: // fall through case JVM_CONSTANT_InvokeDynamic: { // Index of the bootstrap specifier in the operands array ! int old_bs_i = scratch_cp->bootstrap_methods_attribute_index(scratch_i); int new_bs_i = find_or_append_operand(scratch_cp, old_bs_i, merge_cp_p, merge_cp_length_p, THREAD); // The bootstrap method NameAndType_info index ! int old_ref_i = scratch_cp->bootstrap_name_and_type_ref_index_at(scratch_i); int new_ref_i = find_or_append_indirect_entry(scratch_cp, old_ref_i, merge_cp_p, merge_cp_length_p, THREAD); if (new_bs_i != old_bs_i) { log_trace(redefine, class, constantpool) ("Dynamic entry@%d bootstrap_method_attr_index change: %d to %d",
< prev index next >