mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8152182: Possible overflow in initialzation of _rescan_task_size and _marking_task_size
Add constraints for CMSRescanMultiple and CMSConcMarkMultiple flags Reviewed-by: jwilhelm, jmasa
This commit is contained in:
parent
10c7cac93e
commit
25f35cda7d
5 changed files with 60 additions and 2 deletions
|
@ -1806,13 +1806,17 @@ public:
|
|||
"enough work per iteration") \
|
||||
range(0, max_intx) \
|
||||
\
|
||||
/* 4096 = CardTableModRefBS::card_size_in_words * BitsPerWord */ \
|
||||
product(size_t, CMSRescanMultiple, 32, \
|
||||
"Size (in cards) of CMS parallel rescan task") \
|
||||
range(1, max_uintx) \
|
||||
range(1, SIZE_MAX / 4096) \
|
||||
constraint(CMSRescanMultipleConstraintFunc,AfterMemoryInit) \
|
||||
\
|
||||
/* 4096 = CardTableModRefBS::card_size_in_words * BitsPerWord */ \
|
||||
product(size_t, CMSConcMarkMultiple, 32, \
|
||||
"Size (in cards) of CMS concurrent MT marking task") \
|
||||
range(1, max_uintx) \
|
||||
range(1, SIZE_MAX / 4096) \
|
||||
constraint(CMSConcMarkMultipleConstraintFunc,AfterMemoryInit) \
|
||||
\
|
||||
product(bool, CMSAbortSemantics, false, \
|
||||
"Whether abort-on-overflow semantics is implemented") \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue