mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
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:
parent
edb9e105eb
commit
aad948f0e8
2 changed files with 5 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue