Mercurial > hg > graal-jvmci-8
comparison src/share/vm/gc_implementation/g1/heapRegionSeq.cpp @ 2361:1216415d8e35
7014923: G1: code cleanup
Summary: Some G1 code cleanup.
Reviewed-by: johnc, jcoomes, jwilhelm
author | tonyp |
---|---|
date | Fri, 04 Mar 2011 17:13:19 -0500 |
parents | a672e43650cc |
children | c3f1170908be |
comparison
equal
deleted
inserted
replaced
2312:11303bede852 | 2361:1216415d8e35 |
---|---|
163 curr += 1; | 163 curr += 1; |
164 } | 164 } |
165 | 165 |
166 assert(num_so_far <= num, "post-condition"); | 166 assert(num_so_far <= num, "post-condition"); |
167 if (num_so_far == num) { | 167 if (num_so_far == num) { |
168 // we find enough space for the humongous object | 168 // we found enough space for the humongous object |
169 assert(from <= first && first < _regions.length(), "post-condition"); | 169 assert(from <= first && first < _regions.length(), "post-condition"); |
170 assert(first < curr && (curr - first) == (int) num, "post-condition"); | 170 assert(first < curr && (curr - first) == (int) num, "post-condition"); |
171 for (int i = first; i < first + (int) num; ++i) { | 171 for (int i = first; i < first + (int) num; ++i) { |
172 assert(_regions.at(i)->is_empty(), "post-condition"); | 172 assert(_regions.at(i)->is_empty(), "post-condition"); |
173 } | 173 } |