@@ -4068,7 +4068,7 @@ void VM_RedefineClasses::transfer_old_native_function_registrations(InstanceKlas
4068
4068
transfer.transfer_registrations (_matching_old_methods, _matching_methods_length);
4069
4069
}
4070
4070
4071
- // Deoptimize all compiled code that depends on this class .
4071
+ // Deoptimize all compiled code that depends on the classes redefined .
4072
4072
//
4073
4073
// If the can_redefine_classes capability is obtained in the onload
4074
4074
// phase then the compiler has recorded all dependencies from startup.
@@ -4084,18 +4084,6 @@ void VM_RedefineClasses::transfer_old_native_function_registrations(InstanceKlas
4084
4084
// that depends on the class.
4085
4085
//
4086
4086
4087
- // First step is to walk the code cache for each class redefined and mark
4088
- // dependent methods. Wait until all classes are processed to deoptimize everything.
4089
- void VM_RedefineClasses::mark_dependent_code (InstanceKlass* ik) {
4090
- assert_locked_or_safepoint (Compile_lock);
4091
-
4092
- // All dependencies have been recorded from startup or this is a second or
4093
- // subsequent use of RedefineClasses
4094
- if (JvmtiExport::all_dependencies_are_recorded ()) {
4095
- CodeCache::mark_for_evol_deoptimization (ik);
4096
- }
4097
- }
4098
-
4099
4087
void VM_RedefineClasses::flush_dependent_code () {
4100
4088
assert (SafepointSynchronize::is_at_safepoint (), " sanity check" );
4101
4089
@@ -4221,9 +4209,6 @@ void VM_RedefineClasses::redefine_single_class(Thread* current, jclass the_jclas
4221
4209
JvmtiBreakpoints& jvmti_breakpoints = JvmtiCurrentBreakpoints::get_jvmti_breakpoints ();
4222
4210
jvmti_breakpoints.clearall_in_class_at_safepoint (the_class);
4223
4211
4224
- // Mark all compiled code that depends on this class
4225
- mark_dependent_code (the_class);
4226
-
4227
4212
_old_methods = the_class->methods ();
4228
4213
_new_methods = scratch_class->methods ();
4229
4214
_the_class = the_class;
0 commit comments