3907 "Override the default CDS class list") \ 3908 \ 3909 diagnostic(ccstr, SharedArchiveFile, NULL, \ 3910 "Override the default location of the CDS archive file") \ 3911 \ 3912 product(ccstr, ExtraSharedClassListFile, NULL, \ 3913 "Extra classlist for building the CDS archive file") \ 3914 \ 3915 experimental(size_t, ArrayAllocatorMallocLimit, \ 3916 SOLARIS_ONLY(64*K) NOT_SOLARIS((size_t)-1), \ 3917 "Allocation less than this value will be allocated " \ 3918 "using malloc. Larger allocations will use mmap.") \ 3919 \ 3920 experimental(bool, AlwaysAtomicAccesses, false, \ 3921 "Accesses to all variables should always be atomic") \ 3922 \ 3923 product(bool, EnableTracing, false, \ 3924 "Enable event-based tracing") \ 3925 \ 3926 product(bool, UseLockedTracing, false, \ 3927 "Use locked-tracing when doing event-based tracing") 3928 3929 /* 3930 * Macros for factoring of globals 3931 */ 3932 3933 // Interface macros 3934 #define DECLARE_PRODUCT_FLAG(type, name, value, doc) extern "C" type name; 3935 #define DECLARE_PD_PRODUCT_FLAG(type, name, doc) extern "C" type name; 3936 #define DECLARE_DIAGNOSTIC_FLAG(type, name, value, doc) extern "C" type name; 3937 #define DECLARE_EXPERIMENTAL_FLAG(type, name, value, doc) extern "C" type name; 3938 #define DECLARE_MANAGEABLE_FLAG(type, name, value, doc) extern "C" type name; 3939 #define DECLARE_PRODUCT_RW_FLAG(type, name, value, doc) extern "C" type name; 3940 #ifdef PRODUCT 3941 #define DECLARE_DEVELOPER_FLAG(type, name, value, doc) extern "C" type CONST_##name; const type name = value; 3942 #define DECLARE_PD_DEVELOPER_FLAG(type, name, doc) extern "C" type CONST_##name; const type name = pd_##name; 3943 #define DECLARE_NOTPRODUCT_FLAG(type, name, value, doc) extern "C" type CONST_##name; 3944 #else 3945 #define DECLARE_DEVELOPER_FLAG(type, name, value, doc) extern "C" type name; 3946 #define DECLARE_PD_DEVELOPER_FLAG(type, name, doc) extern "C" type name; 3947 #define DECLARE_NOTPRODUCT_FLAG(type, name, value, doc) extern "C" type name; 3948 #endif | 3907 "Override the default CDS class list") \ 3908 \ 3909 diagnostic(ccstr, SharedArchiveFile, NULL, \ 3910 "Override the default location of the CDS archive file") \ 3911 \ 3912 product(ccstr, ExtraSharedClassListFile, NULL, \ 3913 "Extra classlist for building the CDS archive file") \ 3914 \ 3915 experimental(size_t, ArrayAllocatorMallocLimit, \ 3916 SOLARIS_ONLY(64*K) NOT_SOLARIS((size_t)-1), \ 3917 "Allocation less than this value will be allocated " \ 3918 "using malloc. Larger allocations will use mmap.") \ 3919 \ 3920 experimental(bool, AlwaysAtomicAccesses, false, \ 3921 "Accesses to all variables should always be atomic") \ 3922 \ 3923 product(bool, EnableTracing, false, \ 3924 "Enable event-based tracing") \ 3925 \ 3926 product(bool, UseLockedTracing, false, \ 3927 "Use locked-tracing when doing event-based tracing") \ 3928 \ 3929 experimental(bool, UseUnalignedAccesses, false, \ 3930 "Use unaligned memory accesses in sun.misc.Unsafe") \ 3931 \ 3932 /* 3933 * Macros for factoring of globals 3934 */ 3935 3936 // Interface macros 3937 #define DECLARE_PRODUCT_FLAG(type, name, value, doc) extern "C" type name; 3938 #define DECLARE_PD_PRODUCT_FLAG(type, name, doc) extern "C" type name; 3939 #define DECLARE_DIAGNOSTIC_FLAG(type, name, value, doc) extern "C" type name; 3940 #define DECLARE_EXPERIMENTAL_FLAG(type, name, value, doc) extern "C" type name; 3941 #define DECLARE_MANAGEABLE_FLAG(type, name, value, doc) extern "C" type name; 3942 #define DECLARE_PRODUCT_RW_FLAG(type, name, value, doc) extern "C" type name; 3943 #ifdef PRODUCT 3944 #define DECLARE_DEVELOPER_FLAG(type, name, value, doc) extern "C" type CONST_##name; const type name = value; 3945 #define DECLARE_PD_DEVELOPER_FLAG(type, name, doc) extern "C" type CONST_##name; const type name = pd_##name; 3946 #define DECLARE_NOTPRODUCT_FLAG(type, name, value, doc) extern "C" type CONST_##name; 3947 #else 3948 #define DECLARE_DEVELOPER_FLAG(type, name, value, doc) extern "C" type name; 3949 #define DECLARE_PD_DEVELOPER_FLAG(type, name, doc) extern "C" type name; 3950 #define DECLARE_NOTPRODUCT_FLAG(type, name, value, doc) extern "C" type name; 3951 #endif |