equal
deleted
inserted
replaced
3663 |
3663 |
3664 // Returns true if there are previous versions of a class for class |
3664 // Returns true if there are previous versions of a class for class |
3665 // unloading only. Also resets the flag to false. purge_previous_version |
3665 // unloading only. Also resets the flag to false. purge_previous_version |
3666 // will set the flag to true if there are any left, i.e., if there's any |
3666 // will set the flag to true if there are any left, i.e., if there's any |
3667 // work to do for next time. This is to avoid the expensive code cache |
3667 // work to do for next time. This is to avoid the expensive code cache |
3668 // walk in CLDG::do_unloading(). |
3668 // walk in CLDG::clean_deallocate_lists(). |
3669 bool InstanceKlass::has_previous_versions_and_reset() { |
3669 bool InstanceKlass::has_previous_versions_and_reset() { |
3670 bool ret = _has_previous_versions; |
3670 bool ret = _has_previous_versions; |
3671 log_trace(redefine, class, iklass, purge)("Class unloading: has_previous_versions = %s", |
3671 log_trace(redefine, class, iklass, purge)("Class unloading: has_previous_versions = %s", |
3672 ret ? "true" : "false"); |
3672 ret ? "true" : "false"); |
3673 _has_previous_versions = false; |
3673 _has_previous_versions = false; |