3157 if (FLAG_SET_CMDLINE(uintx, NonProfiledCodeHeapSize, (uintx)long_NonProfiledCodeHeapSize) != Flag::SUCCESS) {
3158 return JNI_EINVAL;
3159 }
3160 // -green
3161 } else if (match_option(option, "-green")) {
3162 jio_fprintf(defaultStream::error_stream(),
3163 "Green threads support not available\n");
3164 return JNI_EINVAL;
3165 // -native
3166 } else if (match_option(option, "-native")) {
3167 // HotSpot always uses native threads, ignore silently for compatibility
3168 // -Xrs
3169 } else if (match_option(option, "-Xrs")) {
3170 // Classic/EVM option, new functionality
3171 if (FLAG_SET_CMDLINE(bool, ReduceSignalUsage, true) != Flag::SUCCESS) {
3172 return JNI_EINVAL;
3173 }
3174 // -Xprof
3175 } else if (match_option(option, "-Xprof")) {
3176 #if INCLUDE_FPROF
3177 _has_profile = true;
3178 #else // INCLUDE_FPROF
3179 jio_fprintf(defaultStream::error_stream(),
3180 "Flat profiling is not supported in this VM.\n");
3181 return JNI_ERR;
3182 #endif // INCLUDE_FPROF
3183 // -Xconcurrentio
3184 } else if (match_option(option, "-Xconcurrentio")) {
3185 if (FLAG_SET_CMDLINE(bool, UseLWPSynchronization, true) != Flag::SUCCESS) {
3186 return JNI_EINVAL;
3187 }
3188 if (FLAG_SET_CMDLINE(bool, BackgroundCompilation, false) != Flag::SUCCESS) {
3189 return JNI_EINVAL;
3190 }
3191 if (FLAG_SET_CMDLINE(intx, DeferThrSuspendLoopCount, 1) != Flag::SUCCESS) {
3192 return JNI_EINVAL;
3193 }
3194 if (FLAG_SET_CMDLINE(bool, UseTLAB, false) != Flag::SUCCESS) {
3195 return JNI_EINVAL;
3196 }
|
3157 if (FLAG_SET_CMDLINE(uintx, NonProfiledCodeHeapSize, (uintx)long_NonProfiledCodeHeapSize) != Flag::SUCCESS) {
3158 return JNI_EINVAL;
3159 }
3160 // -green
3161 } else if (match_option(option, "-green")) {
3162 jio_fprintf(defaultStream::error_stream(),
3163 "Green threads support not available\n");
3164 return JNI_EINVAL;
3165 // -native
3166 } else if (match_option(option, "-native")) {
3167 // HotSpot always uses native threads, ignore silently for compatibility
3168 // -Xrs
3169 } else if (match_option(option, "-Xrs")) {
3170 // Classic/EVM option, new functionality
3171 if (FLAG_SET_CMDLINE(bool, ReduceSignalUsage, true) != Flag::SUCCESS) {
3172 return JNI_EINVAL;
3173 }
3174 // -Xprof
3175 } else if (match_option(option, "-Xprof")) {
3176 #if INCLUDE_FPROF
3177 log_warning(arguments)("Option -Xprof was deprecated in version 9 and will likely be removed in a future release.");
3178 _has_profile = true;
3179 #else // INCLUDE_FPROF
3180 jio_fprintf(defaultStream::error_stream(),
3181 "Flat profiling is not supported in this VM.\n");
3182 return JNI_ERR;
3183 #endif // INCLUDE_FPROF
3184 // -Xconcurrentio
3185 } else if (match_option(option, "-Xconcurrentio")) {
3186 if (FLAG_SET_CMDLINE(bool, UseLWPSynchronization, true) != Flag::SUCCESS) {
3187 return JNI_EINVAL;
3188 }
3189 if (FLAG_SET_CMDLINE(bool, BackgroundCompilation, false) != Flag::SUCCESS) {
3190 return JNI_EINVAL;
3191 }
3192 if (FLAG_SET_CMDLINE(intx, DeferThrSuspendLoopCount, 1) != Flag::SUCCESS) {
3193 return JNI_EINVAL;
3194 }
3195 if (FLAG_SET_CMDLINE(bool, UseTLAB, false) != Flag::SUCCESS) {
3196 return JNI_EINVAL;
3197 }
|