Mercurial > hg > graal-compiler
changeset 1104:27f9477e879b
Merge
author | jmasa |
---|---|
date | Fri, 11 Dec 2009 09:30:48 -0800 |
parents | 84a2da7f454c (current diff) 9dc2adf2cbe0 (diff) |
children | cf9a9a50e763 44f61c24ddab |
files | |
diffstat | 1 files changed, 8 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/share/vm/gc_implementation/g1/collectionSetChooser.cpp Fri Dec 11 08:39:30 2009 -0800 +++ b/src/share/vm/gc_implementation/g1/collectionSetChooser.cpp Fri Dec 11 09:30:48 2009 -0800 @@ -351,9 +351,16 @@ CollectionSetChooser::printSortedHeapRegions() { gclog_or_tty->print_cr("Printing %d Heap Regions sorted by amount of known garbage", _numMarkedRegions); + + DEBUG_ONLY(int marked_count = 0;) for (int i = 0; i < _markedRegions.length(); i++) { - printHeapRegion(_markedRegions.at(i)); + HeapRegion* r = _markedRegions.at(i); + if (r != NULL) { + printHeapRegion(r); + DEBUG_ONLY(marked_count++;) + } } + assert(marked_count == _numMarkedRegions, "must be"); gclog_or_tty->print_cr("Done sorted heap region print"); }