3001 return JNI_EINVAL; 3002 } 3003 } 3004 3005 if (PrintVMOptions) { 3006 for (index = 0; index < args->nOptions; index++) { 3007 const JavaVMOption *option = args->options + index; 3008 if (match_option(option, "-XX:", &tail)) { 3009 logOption(tail); 3010 } 3011 } 3012 } 3013 3014 // Parse JavaVMInitArgs structure passed in, as well as JAVA_TOOL_OPTIONS and _JAVA_OPTIONS 3015 jint result = parse_vm_init_args(args); 3016 if (result != JNI_OK) { 3017 return result; 3018 } 3019 3020 #ifdef JAVASE_EMBEDDED 3021 #ifdef PPC 3022 UNSUPPORTED_OPTION(EnableInvokeDynamic, "Invoke dynamic"); 3023 #endif 3024 UNSUPPORTED_OPTION(UseG1GC, "G1 GC"); 3025 #endif 3026 3027 #ifndef PRODUCT 3028 if (TraceBytecodesAt != 0) { 3029 TraceBytecodes = true; 3030 } 3031 if (CountCompiledCalls) { 3032 if (UseCounterDecay) { 3033 warning("UseCounterDecay disabled because CountCalls is set"); 3034 UseCounterDecay = false; 3035 } 3036 } 3037 #endif // PRODUCT 3038 3039 // Transitional 3040 if (EnableMethodHandles || AnonymousClasses) { 3041 if (!EnableInvokeDynamic && !FLAG_IS_DEFAULT(EnableInvokeDynamic)) { 3042 warning("EnableMethodHandles and AnonymousClasses are obsolete. Keeping EnableInvokeDynamic disabled."); 3043 } else { | 3001 return JNI_EINVAL; 3002 } 3003 } 3004 3005 if (PrintVMOptions) { 3006 for (index = 0; index < args->nOptions; index++) { 3007 const JavaVMOption *option = args->options + index; 3008 if (match_option(option, "-XX:", &tail)) { 3009 logOption(tail); 3010 } 3011 } 3012 } 3013 3014 // Parse JavaVMInitArgs structure passed in, as well as JAVA_TOOL_OPTIONS and _JAVA_OPTIONS 3015 jint result = parse_vm_init_args(args); 3016 if (result != JNI_OK) { 3017 return result; 3018 } 3019 3020 #ifdef JAVASE_EMBEDDED 3021 UNSUPPORTED_OPTION(UseG1GC, "G1 GC"); 3022 #endif 3023 3024 #ifndef PRODUCT 3025 if (TraceBytecodesAt != 0) { 3026 TraceBytecodes = true; 3027 } 3028 if (CountCompiledCalls) { 3029 if (UseCounterDecay) { 3030 warning("UseCounterDecay disabled because CountCalls is set"); 3031 UseCounterDecay = false; 3032 } 3033 } 3034 #endif // PRODUCT 3035 3036 // Transitional 3037 if (EnableMethodHandles || AnonymousClasses) { 3038 if (!EnableInvokeDynamic && !FLAG_IS_DEFAULT(EnableInvokeDynamic)) { 3039 warning("EnableMethodHandles and AnonymousClasses are obsolete. Keeping EnableInvokeDynamic disabled."); 3040 } else { |