equal
deleted
inserted
replaced
3335 } |
3335 } |
3336 } |
3336 } |
3337 return shared_archive_path; |
3337 return shared_archive_path; |
3338 } |
3338 } |
3339 |
3339 |
|
3340 #ifndef PRODUCT |
|
3341 // Determine whether LogVMOutput should be implicitly turned on. |
|
3342 static bool use_vm_log() { |
|
3343 if (LogCompilation || !FLAG_IS_DEFAULT(LogFile) || |
|
3344 PrintCompilation || PrintInlining || PrintDependencies || PrintNativeNMethods || |
|
3345 PrintDebugInfo || PrintRelocations || PrintNMethods || PrintExceptionHandlers || |
|
3346 PrintAssembly || TraceDeoptimization || TraceDependencies || |
|
3347 (VerifyDependencies && FLAG_IS_CMDLINE(VerifyDependencies))) { |
|
3348 return true; |
|
3349 } |
|
3350 |
|
3351 #ifdef COMPILER1 |
|
3352 if (PrintC1Statistics) { |
|
3353 return true; |
|
3354 } |
|
3355 #endif // COMPILER1 |
|
3356 |
|
3357 #ifdef COMPILER2 |
|
3358 if (PrintOptoAssembly || PrintOptoStatistics) { |
|
3359 return true; |
|
3360 } |
|
3361 #endif // COMPILER2 |
|
3362 |
|
3363 return false; |
|
3364 } |
|
3365 #endif // PRODUCT |
|
3366 |
3340 // Parse entry point called from JNI_CreateJavaVM |
3367 // Parse entry point called from JNI_CreateJavaVM |
3341 |
3368 |
3342 jint Arguments::parse(const JavaVMInitArgs* args) { |
3369 jint Arguments::parse(const JavaVMInitArgs* args) { |
3343 |
3370 |
3344 // Remaining part of option string |
3371 // Remaining part of option string |
3628 // Force NmethodSweeper to sweep whole CodeCache each time. |
3655 // Force NmethodSweeper to sweep whole CodeCache each time. |
3629 if (FLAG_IS_DEFAULT(NmethodSweepFraction)) { |
3656 if (FLAG_IS_DEFAULT(NmethodSweepFraction)) { |
3630 NmethodSweepFraction = 1; |
3657 NmethodSweepFraction = 1; |
3631 } |
3658 } |
3632 } |
3659 } |
3633 #endif |
3660 |
|
3661 if (!LogVMOutput && FLAG_IS_DEFAULT(LogVMOutput)) { |
|
3662 if (use_vm_log()) { |
|
3663 LogVMOutput = true; |
|
3664 } |
|
3665 } |
|
3666 #endif // PRODUCT |
3634 |
3667 |
3635 if (PrintCommandLineFlags) { |
3668 if (PrintCommandLineFlags) { |
3636 CommandLineFlags::printSetFlags(tty); |
3669 CommandLineFlags::printSetFlags(tty); |
3637 } |
3670 } |
3638 |
3671 |