2957 } else if (match_option(option, "-XX:+ManagementServer")) { |
2957 } else if (match_option(option, "-XX:+ManagementServer")) { |
2958 jio_fprintf(defaultStream::error_stream(), |
2958 jio_fprintf(defaultStream::error_stream(), |
2959 "ManagementServer is not supported in this VM.\n"); |
2959 "ManagementServer is not supported in this VM.\n"); |
2960 return JNI_ERR; |
2960 return JNI_ERR; |
2961 #endif // INCLUDE_MANAGEMENT |
2961 #endif // INCLUDE_MANAGEMENT |
|
2962 #if INCLUDE_JVMCI |
|
2963 } else if (match_option(option, "-XX:+EnableJVMCIProduct")) { |
|
2964 JVMFlag *jvmciFlag = JVMFlag::find_flag("EnableJVMCIProduct"); |
|
2965 // Allow this flag if it has been unlocked. |
|
2966 if (jvmciFlag != NULL && jvmciFlag->is_unlocked()) { |
|
2967 if (!JVMCIGlobals::enable_jvmci_product_mode(origin)) { |
|
2968 jio_fprintf(defaultStream::error_stream(), |
|
2969 "Unable to enable JVMCI in product mode"); |
|
2970 return JNI_ERR; |
|
2971 } |
|
2972 } |
|
2973 // The flag was locked so process normally to report that error |
|
2974 else if (!process_argument("EnableJVMCIProduct", args->ignoreUnrecognized, origin)) { |
|
2975 return JNI_EINVAL; |
|
2976 } |
|
2977 #endif // INCLUDE_JVMCI |
2962 #if INCLUDE_JFR |
2978 #if INCLUDE_JFR |
2963 } else if (match_jfr_option(&option)) { |
2979 } else if (match_jfr_option(&option)) { |
2964 return JNI_EINVAL; |
2980 return JNI_EINVAL; |
2965 #endif |
2981 #endif |
2966 } else if (match_option(option, "-XX:", &tail)) { // -XX:xxxx |
2982 } else if (match_option(option, "-XX:", &tail)) { // -XX:xxxx |