8027959: Early reclamation of large objects in G1

Try to reclaim humongous objects at every young collection after doing a conservative estimate of its liveness.

Reviewed-by: brutisso, mgerdin
This commit is contained in:
Thomas Schatzl 2014-07-23 09:03:32 +02:00
parent bc56e061ec
commit f161bd6d16
12 changed files with 537 additions and 32 deletions

View file

@ -695,6 +695,9 @@ void OtherRegionsTable::scrub(CardTableModRefBS* ctbs,
clear_fcc();
}
bool OtherRegionsTable::is_empty() const {
return occ_sparse() == 0 && occ_coarse() == 0 && _first_all_fine_prts == NULL;
}
size_t OtherRegionsTable::occupied() const {
size_t sum = occ_fine();