< prev index next >

src/share/vm/runtime/arguments.cpp

Print this page




3056       if (*err != '\0' || *tail == '\0') {
3057         jio_fprintf(defaultStream::error_stream(),
3058                     "Bad min heap free percentage size: %s\n",
3059                     option->optionString);
3060         return JNI_EINVAL;
3061       } else {
3062         if (FLAG_SET_CMDLINE(uintx, MinHeapFreeRatio, minf) != Flag::SUCCESS) {
3063           return JNI_EINVAL;
3064         }
3065       }
3066     // -Xss
3067     } else if (match_option(option, "-Xss", &tail)) {
3068       intx value = 0;
3069       jint err = parse_xss(option, tail, &value);
3070       if (err != JNI_OK) {
3071         return err;
3072       }
3073       if (FLAG_SET_CMDLINE(intx, ThreadStackSize, value) != Flag::SUCCESS) {
3074         return JNI_EINVAL;
3075       }
3076     // -Xoss, -Xsqnopause, -Xoptimize, -Xboundthreads, -Xusealtsigs
3077     } else if (match_option(option, "-Xoss", &tail) ||
3078                match_option(option, "-Xsqnopause") ||
3079                match_option(option, "-Xoptimize") ||
3080                match_option(option, "-Xboundthreads") ||
3081                match_option(option, "-Xusealtsigs")) {
3082       // All these options are deprecated in JDK 9 and will be removed in a future release
3083       char version[256];
3084       JDK_Version::jdk(9).to_string(version, sizeof(version));
3085       warning("Ignoring option %s; support was removed in %s", option->optionString, version);
3086     } else if (match_option(option, "-XX:CodeCacheExpansionSize=", &tail)) {
3087       julong long_CodeCacheExpansionSize = 0;
3088       ArgsRange errcode = parse_memory_size(tail, &long_CodeCacheExpansionSize, os::vm_page_size());
3089       if (errcode != arg_in_range) {
3090         jio_fprintf(defaultStream::error_stream(),
3091                    "Invalid argument: %s. Must be at least %luK.\n", option->optionString,
3092                    os::vm_page_size()/K);
3093         return JNI_EINVAL;
3094       }
3095       if (FLAG_SET_CMDLINE(uintx, CodeCacheExpansionSize, (uintx)long_CodeCacheExpansionSize) != Flag::SUCCESS) {
3096         return JNI_EINVAL;
3097       }
3098     } else if (match_option(option, "-Xmaxjitcodesize", &tail) ||
3099                match_option(option, "-XX:ReservedCodeCacheSize=", &tail)) {
3100       julong long_ReservedCodeCacheSize = 0;
3101 
3102       ArgsRange errcode = parse_memory_size(tail, &long_ReservedCodeCacheSize, 1);
3103       if (errcode != arg_in_range) {
3104         jio_fprintf(defaultStream::error_stream(),
3105                     "Invalid maximum code cache size: %s.\n", option->optionString);




3056       if (*err != '\0' || *tail == '\0') {
3057         jio_fprintf(defaultStream::error_stream(),
3058                     "Bad min heap free percentage size: %s\n",
3059                     option->optionString);
3060         return JNI_EINVAL;
3061       } else {
3062         if (FLAG_SET_CMDLINE(uintx, MinHeapFreeRatio, minf) != Flag::SUCCESS) {
3063           return JNI_EINVAL;
3064         }
3065       }
3066     // -Xss
3067     } else if (match_option(option, "-Xss", &tail)) {
3068       intx value = 0;
3069       jint err = parse_xss(option, tail, &value);
3070       if (err != JNI_OK) {
3071         return err;
3072       }
3073       if (FLAG_SET_CMDLINE(intx, ThreadStackSize, value) != Flag::SUCCESS) {
3074         return JNI_EINVAL;
3075       }










3076     } else if (match_option(option, "-XX:CodeCacheExpansionSize=", &tail)) {
3077       julong long_CodeCacheExpansionSize = 0;
3078       ArgsRange errcode = parse_memory_size(tail, &long_CodeCacheExpansionSize, os::vm_page_size());
3079       if (errcode != arg_in_range) {
3080         jio_fprintf(defaultStream::error_stream(),
3081                    "Invalid argument: %s. Must be at least %luK.\n", option->optionString,
3082                    os::vm_page_size()/K);
3083         return JNI_EINVAL;
3084       }
3085       if (FLAG_SET_CMDLINE(uintx, CodeCacheExpansionSize, (uintx)long_CodeCacheExpansionSize) != Flag::SUCCESS) {
3086         return JNI_EINVAL;
3087       }
3088     } else if (match_option(option, "-Xmaxjitcodesize", &tail) ||
3089                match_option(option, "-XX:ReservedCodeCacheSize=", &tail)) {
3090       julong long_ReservedCodeCacheSize = 0;
3091 
3092       ArgsRange errcode = parse_memory_size(tail, &long_ReservedCodeCacheSize, 1);
3093       if (errcode != arg_in_range) {
3094         jio_fprintf(defaultStream::error_stream(),
3095                     "Invalid maximum code cache size: %s.\n", option->optionString);


< prev index next >