4963 // Done at the start of full GC. |
4963 // Done at the start of full GC. |
4964 void G1CollectedHeap::tear_down_region_lists() { |
4964 void G1CollectedHeap::tear_down_region_lists() { |
4965 MutexLockerEx x(ZF_mon, Mutex::_no_safepoint_check_flag); |
4965 MutexLockerEx x(ZF_mon, Mutex::_no_safepoint_check_flag); |
4966 while (pop_unclean_region_list_locked() != NULL) ; |
4966 while (pop_unclean_region_list_locked() != NULL) ; |
4967 assert(_unclean_region_list.hd() == NULL && _unclean_region_list.sz() == 0, |
4967 assert(_unclean_region_list.hd() == NULL && _unclean_region_list.sz() == 0, |
4968 "Postconditions of loop.") |
4968 "Postconditions of loop."); |
4969 while (pop_free_region_list_locked() != NULL) ; |
4969 while (pop_free_region_list_locked() != NULL) ; |
4970 assert(_free_region_list == NULL, "Postcondition of loop."); |
4970 assert(_free_region_list == NULL, "Postcondition of loop."); |
4971 if (_free_region_list_size != 0) { |
4971 if (_free_region_list_size != 0) { |
4972 gclog_or_tty->print_cr("Size is %d.", _free_region_list_size); |
4972 gclog_or_tty->print_cr("Size is %d.", _free_region_list_size); |
4973 print_on(gclog_or_tty, true /* extended */); |
4973 print_on(gclog_or_tty, true /* extended */); |