2052 }
2053 if (FLAG_IS_CMDLINE(DefaultMaxRAMFraction)) {
2054 warning("DefaultMaxRAMFraction is deprecated and will likely be removed in a future release. "
2055 "Use MaxRAMFraction instead.");
2056 }
2057 if (FLAG_IS_CMDLINE(UseCMSCompactAtFullCollection)) {
2058 warning("UseCMSCompactAtFullCollection is deprecated and will likely be removed in a future release.");
2059 }
2060 if (FLAG_IS_CMDLINE(CMSFullGCsBeforeCompaction)) {
2061 warning("CMSFullGCsBeforeCompaction is deprecated and will likely be removed in a future release.");
2062 }
2063 if (FLAG_IS_CMDLINE(UseCMSCollectionPassing)) {
2064 warning("UseCMSCollectionPassing is deprecated and will likely be removed in a future release.");
2065 }
2066 }
2067
2068 // Check stack pages settings
2069 bool Arguments::check_stack_pages()
2070 {
2071 bool status = true;
2072 status = status && verify_min_value(StackYellowPages, 1, "StackYellowPages");
2073 status = status && verify_min_value(StackRedPages, 1, "StackRedPages");
2074 // greater stack shadow pages can't generate instruction to bang stack
2075 status = status && verify_interval(StackShadowPages, 1, 50, "StackShadowPages");
2076 return status;
2077 }
2078
2079 // Check the consistency of vm_init_args
2080 bool Arguments::check_vm_args_consistency() {
2081 // Method for adding checks for flag consistency.
2082 // The intent is to warn the user of all possible conflicts,
2083 // before returning an error.
2084 // Note: Needs platform-dependent factoring.
2085 bool status = true;
2086
2087 // Allow both -XX:-UseStackBanging and -XX:-UseBoundThreads in non-product
2088 // builds so the cost of stack banging can be measured.
2089 #if (defined(PRODUCT) && defined(SOLARIS))
2090 if (!UseBoundThreads && !UseStackBanging) {
2091 jio_fprintf(defaultStream::error_stream(),
2092 "-UseStackBanging conflicts with -UseBoundThreads\n");
|
2052 }
2053 if (FLAG_IS_CMDLINE(DefaultMaxRAMFraction)) {
2054 warning("DefaultMaxRAMFraction is deprecated and will likely be removed in a future release. "
2055 "Use MaxRAMFraction instead.");
2056 }
2057 if (FLAG_IS_CMDLINE(UseCMSCompactAtFullCollection)) {
2058 warning("UseCMSCompactAtFullCollection is deprecated and will likely be removed in a future release.");
2059 }
2060 if (FLAG_IS_CMDLINE(CMSFullGCsBeforeCompaction)) {
2061 warning("CMSFullGCsBeforeCompaction is deprecated and will likely be removed in a future release.");
2062 }
2063 if (FLAG_IS_CMDLINE(UseCMSCollectionPassing)) {
2064 warning("UseCMSCollectionPassing is deprecated and will likely be removed in a future release.");
2065 }
2066 }
2067
2068 // Check stack pages settings
2069 bool Arguments::check_stack_pages()
2070 {
2071 bool status = true;
2072 // banging in compiler code needs 2 yellow page: it bangs page at
2073 // StackShadowPages+1 which may be second yellow page.
2074 status = status && verify_min_value(StackYellowPages, 2, "StackYellowPages");
2075 status = status && verify_min_value(StackRedPages, 1, "StackRedPages");
2076 // greater stack shadow pages can't generate instruction to bang stack
2077 status = status && verify_interval(StackShadowPages, 1, 50, "StackShadowPages");
2078 return status;
2079 }
2080
2081 // Check the consistency of vm_init_args
2082 bool Arguments::check_vm_args_consistency() {
2083 // Method for adding checks for flag consistency.
2084 // The intent is to warn the user of all possible conflicts,
2085 // before returning an error.
2086 // Note: Needs platform-dependent factoring.
2087 bool status = true;
2088
2089 // Allow both -XX:-UseStackBanging and -XX:-UseBoundThreads in non-product
2090 // builds so the cost of stack banging can be measured.
2091 #if (defined(PRODUCT) && defined(SOLARIS))
2092 if (!UseBoundThreads && !UseStackBanging) {
2093 jio_fprintf(defaultStream::error_stream(),
2094 "-UseStackBanging conflicts with -UseBoundThreads\n");
|