26 #define SHARE_RUNTIME_FLAGS_JVMFLAGCONSTRAINTSRUNTIME_HPP
27
28 #include "runtime/flags/jvmFlag.hpp"
29
30 /*
31 * Here we have runtime arguments constraints functions, which are called automatically
32 * whenever flag's value changes. If the constraint fails the function should return
33 * an appropriate error value.
34 */
35
36 #define RUNTIME_CONSTRAINTS(f) \
37 f(ccstr, AOTCacheConstraintFunc) \
38 f(ccstr, AOTCacheOutputConstraintFunc) \
39 f(ccstr, AOTConfigurationConstraintFunc) \
40 f(ccstr, AOTModeConstraintFunc) \
41 f(int, ObjectAlignmentInBytesConstraintFunc) \
42 f(int, ContendedPaddingWidthConstraintFunc) \
43 f(int, PerfDataSamplingIntervalFunc) \
44 f(uintx, VMPageSizeConstraintFunc) \
45 f(size_t, NUMAInterleaveGranularityConstraintFunc) \
46 f(size_t, LargePageSizeInBytesConstraintFunc)
47
48 RUNTIME_CONSTRAINTS(DECLARE_CONSTRAINT)
49
50 #endif // SHARE_RUNTIME_FLAGS_JVMFLAGCONSTRAINTSRUNTIME_HPP
|
26 #define SHARE_RUNTIME_FLAGS_JVMFLAGCONSTRAINTSRUNTIME_HPP
27
28 #include "runtime/flags/jvmFlag.hpp"
29
30 /*
31 * Here we have runtime arguments constraints functions, which are called automatically
32 * whenever flag's value changes. If the constraint fails the function should return
33 * an appropriate error value.
34 */
35
36 #define RUNTIME_CONSTRAINTS(f) \
37 f(ccstr, AOTCacheConstraintFunc) \
38 f(ccstr, AOTCacheOutputConstraintFunc) \
39 f(ccstr, AOTConfigurationConstraintFunc) \
40 f(ccstr, AOTModeConstraintFunc) \
41 f(int, ObjectAlignmentInBytesConstraintFunc) \
42 f(int, ContendedPaddingWidthConstraintFunc) \
43 f(int, PerfDataSamplingIntervalFunc) \
44 f(uintx, VMPageSizeConstraintFunc) \
45 f(size_t, NUMAInterleaveGranularityConstraintFunc) \
46 f(ccstr, OnSpinWaitInstNameConstraintFunc) \
47 f(size_t, LargePageSizeInBytesConstraintFunc)
48
49 RUNTIME_CONSTRAINTS(DECLARE_CONSTRAINT)
50
51 #endif // SHARE_RUNTIME_FLAGS_JVMFLAGCONSTRAINTSRUNTIME_HPP
|