Skip to content

Commit

Permalink
8345955: Deprecate the UseOprofile flag with a view to removing the l…
Browse files Browse the repository at this point in the history
…egacy oprofile support in the VM

Reviewed-by: iklam, shade
  • Loading branch information
David Holmes committed Dec 12, 2024
1 parent 72c59de commit ceb4366
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/hotspot/os/linux/globals_linux.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
constraint) \
\
product(bool, UseOprofile, false, \
"enable support for Oprofile profiler") \
"(Deprecated) enable support for Oprofile profiler") \
\
product(bool, UseTransparentHugePages, false, \
"Use MADV_HUGEPAGE for large pages") \
Expand Down
1 change: 1 addition & 0 deletions src/hotspot/share/runtime/arguments.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,7 @@ static SpecialFlag const special_jvm_flags[] = {
{ "UseSharedSpaces", JDK_Version::jdk(18), JDK_Version::jdk(19), JDK_Version::undefined() },
#ifdef LINUX
{ "UseLinuxPosixThreadCPUClocks", JDK_Version::jdk(24), JDK_Version::jdk(25), JDK_Version::jdk(26) },
{ "UseOprofile", JDK_Version::jdk(25), JDK_Version::jdk(26), JDK_Version::jdk(27) },
#endif
{ "LockingMode", JDK_Version::jdk(24), JDK_Version::jdk(26), JDK_Version::jdk(27) },
// --- Deprecated alias flags (see also aliased_jvm_flags) - sorted by obsolete_in then expired_in:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,13 @@ public class VMDeprecatedOptions {
{"CreateMinidumpOnCrash", "false"}
}
));
if (Platform.isLinux()) {
deprecated.addAll(
Arrays.asList(new String[][] {
{"UseOprofile", "false"}
})
);
}
if (Platform.isX86() || Platform.isX64()) {
deprecated.addAll(
Arrays.asList(new String[][] {
Expand Down

0 comments on commit ceb4366

Please sign in to comment.