8027756: assert(!hr->isHumongous()) failed: code root in humongous region?

Change checks for isHumongous() to continuesHumongous() as installing a code root for a humongous object is valid, but not for continuations of humongous objects. Cleaned up asserts.

Reviewed-by: jmasa, tamao
This commit is contained in:
Thomas Schatzl 2013-11-07 15:17:10 +01:00
parent 2c2fcae7df
commit 6f46da6198
4 changed files with 178 additions and 15 deletions

View file

@ -1004,7 +1004,9 @@ public:
void HeapRegionRemSet::migrate_strong_code_roots() {
assert(hr()->in_collection_set(), "only collection set regions");
assert(!hr()->isHumongous(), "not humongous regions");
assert(!hr()->isHumongous(),
err_msg("humongous region "HR_FORMAT" should not have been added to the collection set",
HR_FORMAT_PARAMS(hr())));
ResourceMark rm;