8152176: Big ParGCCardsPerStrideChunk values can cause overflow for CMS GC

Limit the max value of ParGCCardsPerStrideChunk based on card table size and other stride flags

Reviewed-by: jmasa, tbenson
This commit is contained in:
Sangheon Kim 2016-04-01 09:43:13 -07:00
parent c3469071aa
commit a868617af7
4 changed files with 44 additions and 9 deletions

View file

@ -1629,6 +1629,7 @@ public:
"The number of cards in each chunk of the parallel chunks used " \
"during card table scanning") \
range(1, max_intx) \
constraint(ParGCCardsPerStrideChunkConstraintFunc,AfterMemoryInit)\
\
product(uintx, OldPLABWeight, 50, \
"Percentage (0-100) used to weight the current sample when " \