7107 } |
7107 } |
7108 |
7108 |
7109 if (hr->is_young()) { |
7109 if (hr->is_young()) { |
7110 // TODO |
7110 // TODO |
7111 } else if (hr->startsHumongous()) { |
7111 } else if (hr->startsHumongous()) { |
7112 assert(hr->containing_set() == _humongous_set, err_msg("Heap region %u is starts humongous but not in humongous set.", hr->region_num())); |
7112 assert(hr->containing_set() == _humongous_set, err_msg("Heap region %u is starts humongous but not in humongous set.", hr->hrs_index())); |
7113 _humongous_count.increment(1u, hr->capacity()); |
7113 _humongous_count.increment(1u, hr->capacity()); |
7114 } else if (hr->is_empty()) { |
7114 } else if (hr->is_empty()) { |
7115 assert(hr->containing_set() == _free_list, err_msg("Heap region %u is empty but not on the free list.", hr->region_num())); |
7115 assert(hr->containing_set() == _free_list, err_msg("Heap region %u is empty but not on the free list.", hr->hrs_index())); |
7116 _free_count.increment(1u, hr->capacity()); |
7116 _free_count.increment(1u, hr->capacity()); |
7117 } else { |
7117 } else { |
7118 assert(hr->containing_set() == _old_set, err_msg("Heap region %u is old but not in the old set.", hr->region_num())); |
7118 assert(hr->containing_set() == _old_set, err_msg("Heap region %u is old but not in the old set.", hr->hrs_index())); |
7119 _old_count.increment(1u, hr->capacity()); |
7119 _old_count.increment(1u, hr->capacity()); |
7120 } |
7120 } |
7121 return false; |
7121 return false; |
7122 } |
7122 } |
7123 |
7123 |