mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
Merge
This commit is contained in:
commit
afef481831
63 changed files with 1020 additions and 744 deletions
|
@ -3408,6 +3408,33 @@ static char* get_shared_archive_path() {
|
|||
return shared_archive_path;
|
||||
}
|
||||
|
||||
#ifndef PRODUCT
|
||||
// Determine whether LogVMOutput should be implicitly turned on.
|
||||
static bool use_vm_log() {
|
||||
if (LogCompilation || !FLAG_IS_DEFAULT(LogFile) ||
|
||||
PrintCompilation || PrintInlining || PrintDependencies || PrintNativeNMethods ||
|
||||
PrintDebugInfo || PrintRelocations || PrintNMethods || PrintExceptionHandlers ||
|
||||
PrintAssembly || TraceDeoptimization || TraceDependencies ||
|
||||
(VerifyDependencies && FLAG_IS_CMDLINE(VerifyDependencies))) {
|
||||
return true;
|
||||
}
|
||||
|
||||
#ifdef COMPILER1
|
||||
if (PrintC1Statistics) {
|
||||
return true;
|
||||
}
|
||||
#endif // COMPILER1
|
||||
|
||||
#ifdef COMPILER2
|
||||
if (PrintOptoAssembly || PrintOptoStatistics) {
|
||||
return true;
|
||||
}
|
||||
#endif // COMPILER2
|
||||
|
||||
return false;
|
||||
}
|
||||
#endif // PRODUCT
|
||||
|
||||
// Parse entry point called from JNI_CreateJavaVM
|
||||
|
||||
jint Arguments::parse(const JavaVMInitArgs* args) {
|
||||
|
@ -3708,7 +3735,13 @@ jint Arguments::apply_ergo() {
|
|||
NmethodSweepFraction = 1;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
if (!LogVMOutput && FLAG_IS_DEFAULT(LogVMOutput)) {
|
||||
if (use_vm_log()) {
|
||||
LogVMOutput = true;
|
||||
}
|
||||
}
|
||||
#endif // PRODUCT
|
||||
|
||||
if (PrintCommandLineFlags) {
|
||||
CommandLineFlags::printSetFlags(tty);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue