equal
deleted
inserted
replaced
2968 Method* old_method = _deleted_methods[i]; |
2968 Method* old_method = _deleted_methods[i]; |
2969 |
2969 |
2970 assert(!old_method->has_vtable_index(), |
2970 assert(!old_method->has_vtable_index(), |
2971 "cannot delete methods with vtable entries");; |
2971 "cannot delete methods with vtable entries");; |
2972 |
2972 |
2973 // Mark all deleted methods as old and obsolete |
2973 // Mark all deleted methods as old, obsolete and deleted |
|
2974 old_method->set_is_deleted(); |
2974 old_method->set_is_old(); |
2975 old_method->set_is_old(); |
2975 old_method->set_is_obsolete(); |
2976 old_method->set_is_obsolete(); |
2976 ++obsolete_count; |
2977 ++obsolete_count; |
2977 // With tracing we try not to "yack" too much. The position of |
2978 // With tracing we try not to "yack" too much. The position of |
2978 // this trace assumes there are fewer obsolete methods than |
2979 // this trace assumes there are fewer obsolete methods than |
3574 ik->itable()->dump_itable(); |
3575 ik->itable()->dump_itable(); |
3575 } |
3576 } |
3576 no_old_methods = false; |
3577 no_old_methods = false; |
3577 } |
3578 } |
3578 |
3579 |
3579 // the constant pool cache should never contain old or obsolete methods |
3580 // the constant pool cache should never contain non-deleted old or obsolete methods |
3580 if (ik->constants() != NULL && |
3581 if (ik->constants() != NULL && |
3581 ik->constants()->cache() != NULL && |
3582 ik->constants()->cache() != NULL && |
3582 !ik->constants()->cache()->check_no_old_or_obsolete_entries()) { |
3583 !ik->constants()->cache()->check_no_old_or_obsolete_entries()) { |
3583 if (RC_TRACE_ENABLED(0x00004000)) { |
3584 if (RC_TRACE_ENABLED(0x00004000)) { |
3584 RC_TRACE_WITH_THREAD(0x00004000, _thread, |
3585 RC_TRACE_WITH_THREAD(0x00004000, _thread, |