Lines Matching refs:tail
106 // Check if head of 'option' matches 'name', and sets 'tail' remaining part of option string
109 const char** tail) {
112 *tail = option->optionString + len;
132 const char* tail;
134 if (match_option(option, "-Dsun.java.launcher=", &tail)) {
135 process_java_launcher_argument(tail, option->extraInfo);
138 if (match_option(option, "-Dsun.java.launcher.pid=", &tail)) {
139 _sun_java_launcher_pid = atoi(tail);
2029 // If tail_allowed is true, then the tail must begin with a colon; otherwise,
2031 static bool match_option(const JavaVMOption* option, const char** names, const char** tail,
2034 if (match_option(option, *names, tail)) {
2035 if (**tail == '\0' || tail_allowed && **tail == ':') {
2136 const char* tail;
2144 if (!match_option(option, "-Djava.class.path", &tail) &&
2145 !match_option(option, "-Dsun.java.command", &tail) &&
2146 !match_option(option, "-Dsun.java.launcher", &tail)) {
2157 if (match_option(option, "-verbose", &tail)) {
2158 if (!strcmp(tail, ":class") || !strcmp(tail, "")) {
2161 } else if (!strcmp(tail, ":gc")) {
2163 } else if (!strcmp(tail, ":jni")) {
2169 } else if (match_option(option, user_assertion_options, &tail, true)) {
2171 if (*tail == '\0') {
2174 assert(*tail == ':', "bogus match by match_option()");
2175 JavaAssertions::addOption(tail + 1, enable);
2178 } else if (match_option(option, system_assertion_options, &tail, false)) {
2182 } else if (match_option(option, "-Xbootclasspath:", &tail)) {
2183 scp_p->reset_path(tail);
2186 } else if (match_option(option, "-Xbootclasspath/a:", &tail)) {
2187 scp_p->add_suffix(tail);
2190 } else if (match_option(option, "-Xbootclasspath/p:", &tail)) {
2191 scp_p->add_prefix(tail);
2194 } else if (match_option(option, "-Xrun", &tail)) {
2195 if (tail != NULL) {
2196 const char* pos = strchr(tail, ':');
2197 size_t len = (pos == NULL) ? strlen(tail) : pos - tail;
2198 char* name = (char*)memcpy(NEW_C_HEAP_ARRAY(char, len + 1, mtInternal), tail, len);
2209 } else if (match_option(option, "-agentlib:", &tail) ||
2210 (is_absolute_path = match_option(option, "-agentpath:", &tail))) {
2211 if(tail != NULL) {
2212 const char* pos = strchr(tail, '=');
2213 size_t len = (pos == NULL) ? strlen(tail) : pos - tail;
2214 char* name = strncpy(NEW_C_HEAP_ARRAY(char, len + 1, mtInternal), tail, len);
2225 } else if (match_option(option, "-javaagent:", &tail)) {
2226 if(tail != NULL) {
2227 char *options = strcpy(NEW_C_HEAP_ARRAY(char, strlen(tail) + 1, mtInternal), tail);
2231 } else if (match_option(option, "-Xnoclassgc", &tail)) {
2234 } else if (match_option(option, "-Xincgc", &tail)) {
2238 } else if (match_option(option, "-Xnoincgc", &tail)) {
2242 } else if (match_option(option, "-Xconcgc", &tail)) {
2245 } else if (match_option(option, "-Xnoconcgc", &tail)) {
2248 } else if (match_option(option, "-Xbatch", &tail)) {
2251 } else if (match_option(option, "-Xmn", &tail)) {
2253 ArgsRange errcode = parse_memory_size(tail, &long_initial_eden_size, 1);
2263 } else if (match_option(option, "-Xms", &tail)) {
2265 ArgsRange errcode = parse_memory_size(tail, &long_initial_heap_size, 1);
2276 } else if (match_option(option, "-Xmx", &tail)) {
2278 ArgsRange errcode = parse_memory_size(tail, &long_max_heap_size, 1);
2287 } else if (match_option(option, "-Xmaxf", &tail)) {
2288 int maxf = (int)(atof(tail) * 100);
2298 } else if (match_option(option, "-Xminf", &tail)) {
2299 int minf = (int)(atof(tail) * 100);
2309 } else if (match_option(option, "-Xss", &tail)) {
2311 ArgsRange errcode = parse_memory_size(tail, &long_ThreadStackSize, 1000);
2322 } else if (match_option(option, "-Xoss", &tail)) {
2325 } else if (match_option(option, "-Xmaxjitcodesize", &tail) ||
2326 match_option(option, "-XX:ReservedCodeCacheSize=", &tail)) {
2328 ArgsRange errcode = parse_memory_size(tail, &long_ReservedCodeCacheSize,
2339 } else if (match_option(option, "-green", &tail)) {
2344 } else if (match_option(option, "-native", &tail)) {
2347 } else if (match_option(option, "-Xsqnopause", &tail)) {
2350 } else if (match_option(option, "-Xrs", &tail)) {
2353 } else if (match_option(option, "-Xusealtsigs", &tail)) {
2357 } else if (match_option(option, "-Xoptimize", &tail)) {
2360 } else if (match_option(option, "-Xprof", &tail)) {
2363 } else if (match_option(option, "-Xaprof", &tail)) {
2366 } else if (match_option(option, "-Xconcurrentio", &tail)) {
2374 } else if (match_option(option, "-Xinternalversion", &tail)) {
2380 } else if (match_option(option, "-Xprintflags", &tail)) {
2385 } else if (match_option(option, "-D", &tail)) {
2386 if (!add_property(tail)) {
2390 if (match_option(option, "-Dcom.sun.management", &tail)) {
2394 } else if (match_option(option, "-Xint", &tail)) {
2397 } else if (match_option(option, "-Xmixed", &tail)) {
2400 } else if (match_option(option, "-Xcomp", &tail)) {
2405 } else if (match_option(option, "-Xshare:dump", &tail)) {
2417 } else if (match_option(option, "-Xshare:on", &tail)) {
2421 } else if (match_option(option, "-Xshare:auto", &tail)) {
2425 } else if (match_option(option, "-Xshare:off", &tail)) {
2430 } else if (match_option(option, "-Xverify", &tail)) {
2431 if (strcmp(tail, ":all") == 0 || strcmp(tail, "") == 0) {
2434 } else if (strcmp(tail, ":remote") == 0) {
2437 } else if (strcmp(tail, ":none") == 0) {
2444 } else if (match_option(option, "-Xdebug", &tail)) {
2448 } else if (match_option(option, "-Xnoagent", &tail)) {
2450 } else if (match_option(option, "-Xboundthreads", &tail)) {
2453 } else if (match_option(option, "-Xloggc:", &tail)) {
2457 _gc_log_filename = strdup(tail);
2462 } else if (match_option(option, "-Xcheck", &tail)) {
2463 if (!strcmp(tail, ":jni")) {
2469 } else if (match_option(option, "vfprintf", &tail)) {
2471 } else if (match_option(option, "exit", &tail)) {
2473 } else if (match_option(option, "abort", &tail)) {
2476 } else if (match_option(option, "-XX:+AggressiveHeap", &tail)) {
2574 } else if (match_option(option, "-XX:+NeverTenure", &tail)) {
2578 } else if (match_option(option, "-XX:+AlwaysTenure", &tail)) {
2582 } else if (match_option(option, "-XX:+CMSPermGenSweepingEnabled", &tail) ||
2583 match_option(option, "-XX:-CMSPermGenSweepingEnabled", &tail)) {
2587 } else if (match_option(option, "-XX:+UseGCTimeLimit", &tail)) {
2592 } else if (match_option(option, "-XX:-UseGCTimeLimit", &tail)) {
2600 } else if (match_option(option, "-XX:MaxTLERatio=", &tail)) {
2602 } else if (match_option(option, "-XX:+ResizeTLE", &tail)) {
2604 } else if (match_option(option, "-XX:-ResizeTLE", &tail)) {
2606 } else if (match_option(option, "-XX:+PrintTLE", &tail)) {
2608 } else if (match_option(option, "-XX:-PrintTLE", &tail)) {
2610 } else if (match_option(option, "-XX:TLEFragmentationRatio=", &tail)) {
2612 } else if (match_option(option, "-XX:TLESize=", &tail)) {
2614 ArgsRange errcode = parse_memory_size(tail, &long_tlab_size, 1);
2622 } else if (match_option(option, "-XX:TLEThreadRatio=", &tail)) {
2624 } else if (match_option(option, "-XX:+UseTLE", &tail)) {
2626 } else if (match_option(option, "-XX:-UseTLE", &tail)) {
2629 } else if (match_option(option, "-XX:+UsePermISM", &tail)) {
2632 } else if (match_option(option, "-XX:-UsePermISM", &tail)) {
2635 } else if (match_option(option, "-XX:+DisplayVMOutputToStderr", &tail)) {
2638 } else if (match_option(option, "-XX:+DisplayVMOutputToStdout", &tail)) {
2641 } else if (match_option(option, "-XX:+ExtendedDTraceProbes", &tail)) {
2653 } else if (match_option(option, "-XX:+FullGCALot", &tail)) {
2658 } else if (match_option(option, "-XX:CMSParPromoteBlocksToClaim=", &tail)) {
2659 julong cms_blocks_to_claim = (julong)atol(tail);
2664 } else if (match_option(option, "-XX:ParCMSPromoteBlocksToClaim=", &tail)) {
2665 julong cms_blocks_to_claim = (julong)atol(tail);
2670 } else if (match_option(option, "-XX:ParallelGCOldGenAllocBufferSize=", &tail)) {
2672 ArgsRange errcode = parse_memory_size(tail, &old_plab_size, 1);
2683 } else if (match_option(option, "-XX:ParallelGCToSpaceAllocBufferSize=", &tail)) {
2685 ArgsRange errcode = parse_memory_size(tail, &young_plab_size, 1);
2696 } else if (match_option(option, "-XX:CMSMarkStackSize=", &tail) ||
2697 match_option(option, "-XX:G1MarkStackSize=", &tail)) {
2699 ArgsRange errcode = parse_memory_size(tail, &stack_size, 1);
2707 } else if (match_option(option, "-XX:CMSMarkStackSizeMax=", &tail)) {
2709 ArgsRange errcode = parse_memory_size(tail, &max_stack_size, 1);
2718 } else if (match_option(option, "-XX:ParallelMarkingThreads=", &tail) ||
2719 match_option(option, "-XX:ParallelCMSThreads=", &tail)) {
2721 if (!parse_uintx(tail, &conc_threads, 1)) {
2727 } else if (match_option(option, "-XX:MaxDirectMemorySize=", &tail)) {
2729 ArgsRange errcode = parse_memory_size(tail, &max_direct_memory_size, 0);
2738 } else if (match_option(option, "-XX:", &tail)) { // -XX:xxxx
2740 if (strncmp(tail, "Flags=", strlen("Flags=")) != 0) {
2741 if (!process_argument(tail, args->ignoreUnrecognized, origin)) {
2904 const char* tail;
2907 if (match_option(option, "-XX:", &tail)) {
2908 logOption(tail);
2998 const char* tail;
3009 if (match_option(option, "-XX:Flags=", &tail)) {
3010 flags_file = tail;
3013 if (match_option(option, "-XX:+PrintVMOptions", &tail)) {
3016 if (match_option(option, "-XX:-PrintVMOptions", &tail)) {
3019 if (match_option(option, "-XX:+IgnoreUnrecognizedVMOptions", &tail)) {
3022 if (match_option(option, "-XX:-IgnoreUnrecognizedVMOptions", &tail)) {
3025 if (match_option(option, "-XX:+PrintFlagsInitial", &tail)) {
3029 if (match_option(option, "-XX:NativeMemoryTracking", &tail)) {
3030 MemTracker::init_tracking_options(tail);
3035 if (match_option(option, "-XX:+PrintFlagsWithComments", &tail)) {
3069 if (match_option(option, "-XX:", &tail)) {
3070 logOption(tail);