mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8143958: CDS Shared flags need constraint function
Implement range constraints for CDS flags. Reviewed-by: iklam, jiangli
This commit is contained in:
parent
3af6c14332
commit
5a7ecbdf94
4 changed files with 44 additions and 11 deletions
|
@ -3961,18 +3961,22 @@ public:
|
|||
product(size_t, SharedReadWriteSize, DEFAULT_SHARED_READ_WRITE_SIZE, \
|
||||
"Size of read-write space for metadata (in bytes)") \
|
||||
range(MIN_SHARED_READ_WRITE_SIZE, MAX_SHARED_READ_WRITE_SIZE) \
|
||||
constraint(SharedReadWriteSizeConstraintFunc,AfterErgo) \
|
||||
\
|
||||
product(size_t, SharedReadOnlySize, DEFAULT_SHARED_READ_ONLY_SIZE, \
|
||||
"Size of read-only space for metadata (in bytes)") \
|
||||
range(MIN_SHARED_READ_ONLY_SIZE, MAX_SHARED_READ_ONLY_SIZE) \
|
||||
constraint(SharedReadOnlySizeConstraintFunc,AfterErgo) \
|
||||
\
|
||||
product(size_t, SharedMiscDataSize, DEFAULT_SHARED_MISC_DATA_SIZE, \
|
||||
"Size of the shared miscellaneous data area (in bytes)") \
|
||||
range(MIN_SHARED_MISC_DATA_SIZE, MAX_SHARED_MISC_DATA_SIZE) \
|
||||
constraint(SharedMiscDataSizeConstraintFunc,AfterErgo) \
|
||||
\
|
||||
product(size_t, SharedMiscCodeSize, DEFAULT_SHARED_MISC_CODE_SIZE, \
|
||||
"Size of the shared miscellaneous code area (in bytes)") \
|
||||
range(MIN_SHARED_MISC_CODE_SIZE, MAX_SHARED_MISC_CODE_SIZE) \
|
||||
constraint(SharedMiscCodeSizeConstraintFunc,AfterErgo) \
|
||||
\
|
||||
product(size_t, SharedBaseAddress, LP64_ONLY(32*G) \
|
||||
NOT_LP64(LINUX_ONLY(2*G) NOT_LINUX(0)), \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue