comparison src/share/vm/gc_implementation/g1/heapRegionRemSet.cpp @ 13062:28674af341ac

8027756: assert(!hr->isHumongous()) failed: code root in humongous region? Summary: 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
author tschatzl
date Thu, 07 Nov 2013 15:17:10 +0100
parents 190899198332
children 191174b49bec
comparison
equal deleted inserted replaced
13061:610be0309a79 13062:28674af341ac
1002 uint retain() { return _num_self_forwarded > 0; } 1002 uint retain() { return _num_self_forwarded > 0; }
1003 }; 1003 };
1004 1004
1005 void HeapRegionRemSet::migrate_strong_code_roots() { 1005 void HeapRegionRemSet::migrate_strong_code_roots() {
1006 assert(hr()->in_collection_set(), "only collection set regions"); 1006 assert(hr()->in_collection_set(), "only collection set regions");
1007 assert(!hr()->isHumongous(), "not humongous regions"); 1007 assert(!hr()->isHumongous(),
1008 err_msg("humongous region "HR_FORMAT" should not have been added to the collection set",
1009 HR_FORMAT_PARAMS(hr())));
1008 1010
1009 ResourceMark rm; 1011 ResourceMark rm;
1010 1012
1011 // List of code blobs to retain for this region 1013 // List of code blobs to retain for this region
1012 GrowableArray<nmethod*> to_be_retained(10); 1014 GrowableArray<nmethod*> to_be_retained(10);