Lines Matching refs:option
107 static gc::CollectorType ParseCollectorType(const std::string& option) { in ParseCollectorType() argument
108 if (option == "MS" || option == "nonconcurrent") { in ParseCollectorType()
110 } else if (option == "CMS" || option == "concurrent") { in ParseCollectorType()
112 } else if (option == "SS") { in ParseCollectorType()
114 } else if (option == "GSS") { in ParseCollectorType()
116 } else if (option == "CC") { in ParseCollectorType()
118 } else if (option == "MC") { in ParseCollectorType()
125 bool ParsedOptions::ParseXGcOption(const std::string& option) { in ParseXGcOption() argument
127 Split(option.substr(strlen("-Xgc:")), ',', gc_options); in ParseXGcOption()
283 const std::string option(options[i].first); in Parse() local
284 if (StartsWith(option, "-help")) { in Parse()
287 } else if (StartsWith(option, "-showversion")) { in Parse()
290 } else if (StartsWith(option, "-Xbootclasspath:")) { in Parse()
291 boot_class_path_string_ = option.substr(strlen("-Xbootclasspath:")).data(); in Parse()
293 } else if (option == "-classpath" || option == "-cp") { in Parse()
297 Usage("Missing required class path value for %s\n", option.c_str()); in Parse()
302 } else if (option == "bootclasspath") { in Parse()
305 } else if (StartsWith(option, "-Ximage:")) { in Parse()
306 if (!ParseStringAfterChar(option, ':', &image_)) { in Parse()
309 } else if (StartsWith(option, "-Xcheck:jni")) { in Parse()
311 } else if (StartsWith(option, "-Xrunjdwp:") || StartsWith(option, "-agentlib:jdwp=")) { in Parse()
312 std::string tail(option.substr(option[1] == 'X' ? 10 : 15)); in Parse()
322 } else if (StartsWith(option, "-Xms")) { in Parse()
323 size_t size = ParseMemoryOption(option.substr(strlen("-Xms")).c_str(), 1024); in Parse()
325 Usage("Failed to parse memory option %s\n", option.c_str()); in Parse()
329 } else if (StartsWith(option, "-Xmx")) { in Parse()
330 size_t size = ParseMemoryOption(option.substr(strlen("-Xmx")).c_str(), 1024); in Parse()
332 Usage("Failed to parse memory option %s\n", option.c_str()); in Parse()
336 } else if (StartsWith(option, "-XX:HeapGrowthLimit=")) { in Parse()
337 size_t size = ParseMemoryOption(option.substr(strlen("-XX:HeapGrowthLimit=")).c_str(), 1024); in Parse()
339 Usage("Failed to parse memory option %s\n", option.c_str()); in Parse()
343 } else if (StartsWith(option, "-XX:HeapMinFree=")) { in Parse()
344 size_t size = ParseMemoryOption(option.substr(strlen("-XX:HeapMinFree=")).c_str(), 1024); in Parse()
346 Usage("Failed to parse memory option %s\n", option.c_str()); in Parse()
350 } else if (StartsWith(option, "-XX:HeapMaxFree=")) { in Parse()
351 size_t size = ParseMemoryOption(option.substr(strlen("-XX:HeapMaxFree=")).c_str(), 1024); in Parse()
353 Usage("Failed to parse memory option %s\n", option.c_str()); in Parse()
357 } else if (StartsWith(option, "-XX:NonMovingSpaceCapacity=")) { in Parse()
359 option.substr(strlen("-XX:NonMovingSpaceCapacity=")).c_str(), 1024); in Parse()
361 Usage("Failed to parse memory option %s\n", option.c_str()); in Parse()
365 } else if (StartsWith(option, "-XX:HeapTargetUtilization=")) { in Parse()
366 if (!ParseDouble(option, '=', 0.1, 0.9, &heap_target_utilization_)) { in Parse()
369 } else if (StartsWith(option, "-XX:ForegroundHeapGrowthMultiplier=")) { in Parse()
370 if (!ParseDouble(option, '=', 0.1, 10.0, &foreground_heap_growth_multiplier_)) { in Parse()
373 } else if (StartsWith(option, "-XX:ParallelGCThreads=")) { in Parse()
374 if (!ParseUnsignedInteger(option, '=', ¶llel_gc_threads_)) { in Parse()
377 } else if (StartsWith(option, "-XX:ConcGCThreads=")) { in Parse()
378 if (!ParseUnsignedInteger(option, '=', &conc_gc_threads_)) { in Parse()
381 } else if (StartsWith(option, "-Xss")) { in Parse()
382 size_t size = ParseMemoryOption(option.substr(strlen("-Xss")).c_str(), 1); in Parse()
384 Usage("Failed to parse memory option %s\n", option.c_str()); in Parse()
388 } else if (StartsWith(option, "-XX:MaxSpinsBeforeThinLockInflation=")) { in Parse()
389 if (!ParseUnsignedInteger(option, '=', &max_spins_before_thin_lock_inflation_)) { in Parse()
392 } else if (StartsWith(option, "-XX:LongPauseLogThreshold=")) { in Parse()
394 if (!ParseUnsignedInteger(option, '=', &value)) { in Parse()
398 } else if (StartsWith(option, "-XX:LongGCLogThreshold=")) { in Parse()
400 if (!ParseUnsignedInteger(option, '=', &value)) { in Parse()
404 } else if (option == "-XX:DumpGCPerformanceOnShutdown") { in Parse()
406 } else if (option == "-XX:IgnoreMaxFootprint") { in Parse()
408 } else if (option == "-XX:LowMemoryMode") { in Parse()
411 } else if (option == "-XX:UseTLAB") { in Parse()
413 } else if (option == "-XX:EnableHSpaceCompactForOOM") { in Parse()
415 } else if (option == "-XX:DisableHSpaceCompactForOOM") { in Parse()
417 } else if (StartsWith(option, "-D")) { in Parse()
418 properties_.push_back(option.substr(strlen("-D"))); in Parse()
419 } else if (StartsWith(option, "-Xjnitrace:")) { in Parse()
420 jni_trace_ = option.substr(strlen("-Xjnitrace:")); in Parse()
421 } else if (option == "compilercallbacks") { in Parse()
424 } else if (option == "imageinstructionset") { in Parse()
431 } else if (option == "-Xzygote") { in Parse()
433 } else if (StartsWith(option, "-Xpatchoat:")) { in Parse()
434 if (!ParseStringAfterChar(option, ':', &patchoat_executable_)) { in Parse()
437 } else if (option == "-Xrelocate") { in Parse()
439 } else if (option == "-Xnorelocate") { in Parse()
441 } else if (option == "-Xnodex2oat") { in Parse()
443 } else if (option == "-Xdex2oat") { in Parse()
445 } else if (option == "-Xnoimage-dex2oat") { in Parse()
447 } else if (option == "-Ximage-dex2oat") { in Parse()
449 } else if (option == "-Xint") { in Parse()
451 } else if (StartsWith(option, "-Xgc:")) { in Parse()
452 if (!ParseXGcOption(option)) { in Parse()
455 } else if (StartsWith(option, "-XX:BackgroundGC=")) { in Parse()
457 if (!ParseStringAfterChar(option, '=', &substring)) { in Parse()
472 } else if (option == "-XX:+DisableExplicitGC") { in Parse()
474 } else if (StartsWith(option, "-verbose:")) { in Parse()
476 Split(option.substr(strlen("-verbose:")), ',', verbose_options); in Parse()
509 } else if (StartsWith(option, "-verbose-methods:")) { in Parse()
511 Split(option.substr(strlen("-verbose-methods:")), ',', gVerboseMethods); in Parse()
512 } else if (StartsWith(option, "-Xlockprofthreshold:")) { in Parse()
513 if (!ParseUnsignedInteger(option, ':', &lock_profiling_threshold_)) { in Parse()
516 } else if (StartsWith(option, "-Xstacktracefile:")) { in Parse()
517 if (!ParseStringAfterChar(option, ':', &stack_trace_file_)) { in Parse()
520 } else if (option == "sensitiveThread") { in Parse()
523 } else if (option == "vfprintf") { in Parse()
531 } else if (option == "exit") { in Parse()
538 } else if (option == "abort") { in Parse()
545 } else if (option == "-Xmethod-trace") { in Parse()
547 } else if (StartsWith(option, "-Xmethod-trace-file:")) { in Parse()
548 method_trace_file_ = option.substr(strlen("-Xmethod-trace-file:")); in Parse()
549 } else if (StartsWith(option, "-Xmethod-trace-file-size:")) { in Parse()
550 if (!ParseUnsignedInteger(option, ':', &method_trace_file_size_)) { in Parse()
553 } else if (option == "-Xprofile:threadcpuclock") { in Parse()
555 } else if (option == "-Xprofile:wallclock") { in Parse()
557 } else if (option == "-Xprofile:dualclock") { in Parse()
559 } else if (option == "-Xenable-profiler") { in Parse()
561 } else if (StartsWith(option, "-Xprofile-filename:")) { in Parse()
562 if (!ParseStringAfterChar(option, ':', &profile_output_filename_)) { in Parse()
565 } else if (StartsWith(option, "-Xprofile-period:")) { in Parse()
566 if (!ParseUnsignedInteger(option, ':', &profiler_options_.period_s_)) { in Parse()
569 } else if (StartsWith(option, "-Xprofile-duration:")) { in Parse()
570 if (!ParseUnsignedInteger(option, ':', &profiler_options_.duration_s_)) { in Parse()
573 } else if (StartsWith(option, "-Xprofile-interval:")) { in Parse()
574 if (!ParseUnsignedInteger(option, ':', &profiler_options_.interval_us_)) { in Parse()
577 } else if (StartsWith(option, "-Xprofile-backoff:")) { in Parse()
578 if (!ParseDouble(option, ':', 1.0, 10.0, &profiler_options_.backoff_coefficient_)) { in Parse()
581 } else if (option == "-Xprofile-start-immediately") { in Parse()
583 } else if (StartsWith(option, "-Xprofile-top-k-threshold:")) { in Parse()
584 if (!ParseDouble(option, ':', 0.0, 100.0, &profiler_options_.top_k_threshold_)) { in Parse()
587 } else if (StartsWith(option, "-Xprofile-top-k-change-threshold:")) { in Parse()
588 if (!ParseDouble(option, ':', 0.0, 100.0, &profiler_options_.top_k_change_threshold_)) { in Parse()
591 } else if (option == "-Xprofile-type:method") { in Parse()
593 } else if (option == "-Xprofile-type:stack") { in Parse()
595 } else if (StartsWith(option, "-Xprofile-max-stack-depth:")) { in Parse()
596 if (!ParseUnsignedInteger(option, ':', &profiler_options_.max_stack_depth_)) { in Parse()
599 } else if (StartsWith(option, "-Xcompiler:")) { in Parse()
600 if (!ParseStringAfterChar(option, ':', &compiler_executable_)) { in Parse()
603 } else if (option == "-Xcompiler-option") { in Parse()
606 Usage("Missing required compiler option for %s\n", option.c_str()); in Parse()
610 } else if (option == "-Ximage-compiler-option") { in Parse()
613 Usage("Missing required compiler option for %s\n", option.c_str()); in Parse()
617 } else if (StartsWith(option, "-Xverify:")) { in Parse()
618 std::string verify_mode = option.substr(strlen("-Xverify:")); in Parse()
627 } else if (StartsWith(option, "-XX:NativeBridge=")) { in Parse()
628 if (!ParseStringAfterChar(option, '=', &native_bridge_library_filename_)) { in Parse()
631 } else if (StartsWith(option, "-ea") || in Parse()
632 StartsWith(option, "-da") || in Parse()
633 StartsWith(option, "-enableassertions") || in Parse()
634 StartsWith(option, "-disableassertions") || in Parse()
635 (option == "--runtime-arg") || in Parse()
636 (option == "-esa") || in Parse()
637 (option == "-dsa") || in Parse()
638 (option == "-enablesystemassertions") || in Parse()
639 (option == "-disablesystemassertions") || in Parse()
640 (option == "-Xrs") || in Parse()
641 StartsWith(option, "-Xint:") || in Parse()
642 StartsWith(option, "-Xdexopt:") || in Parse()
643 (option == "-Xnoquithandler") || in Parse()
644 StartsWith(option, "-Xjniopts:") || in Parse()
645 StartsWith(option, "-Xjnigreflimit:") || in Parse()
646 (option == "-Xgenregmap") || in Parse()
647 (option == "-Xnogenregmap") || in Parse()
648 StartsWith(option, "-Xverifyopt:") || in Parse()
649 (option == "-Xcheckdexsum") || in Parse()
650 (option == "-Xincludeselectedop") || in Parse()
651 StartsWith(option, "-Xjitop:") || in Parse()
652 (option == "-Xincludeselectedmethod") || in Parse()
653 StartsWith(option, "-Xjitthreshold:") || in Parse()
654 StartsWith(option, "-Xjitcodecachesize:") || in Parse()
655 (option == "-Xjitblocking") || in Parse()
656 StartsWith(option, "-Xjitmethod:") || in Parse()
657 StartsWith(option, "-Xjitclass:") || in Parse()
658 StartsWith(option, "-Xjitoffset:") || in Parse()
659 StartsWith(option, "-Xjitconfig:") || in Parse()
660 (option == "-Xjitcheckcg") || in Parse()
661 (option == "-Xjitverbose") || in Parse()
662 (option == "-Xjitprofile") || in Parse()
663 (option == "-Xjitdisableopt") || in Parse()
664 (option == "-Xjitsuspendpoll") || in Parse()
665 StartsWith(option, "-XX:mainThreadStackSize=")) { in Parse()
668 Usage("Unrecognized option %s\n", option.c_str()); in Parse()
898 bool ParsedOptions::ParseDouble(const std::string& option, char after_char, in ParseDouble() argument
901 if (!ParseStringAfterChar(option, after_char, &substring)) { in ParseDouble()
918 Usage("Invalid double value %s for option %s\n", substring.c_str(), option.c_str()); in ParseDouble()