6820066: Check that -XX:ParGCArrayScanChunk has a value larger than zero

Check that -XX:ParGCArrayScanChunk has a value larger than zero.

Reviewed-by: johnc, jmasa, ysr
This commit is contained in:
Jesper Wilhelmsson 2011-03-11 16:35:18 +01:00
parent edb9e105eb
commit aad948f0e8
2 changed files with 5 additions and 3 deletions

View file

@ -411,7 +411,7 @@ oop PSPromotionManager::copy_to_survivor_space(oop o) {
template <class T> void PSPromotionManager::process_array_chunk_work(
oop obj,
int start, int end) {
assert(start < end, "invariant");
assert(start <= end, "invariant");
T* const base = (T*)objArrayOop(obj)->base();
T* p = base + start;
T* const chunk_end = base + end;