Skip to content

Commit ceb4366

Browse files
author
David Holmes
committedDec 12, 2024
8345955: Deprecate the UseOprofile flag with a view to removing the legacy oprofile support in the VM
Reviewed-by: iklam, shade
1 parent 72c59de commit ceb4366

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed
 

‎src/hotspot/os/linux/globals_linux.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
constraint) \
3737
\
3838
product(bool, UseOprofile, false, \
39-
"enable support for Oprofile profiler") \
39+
"(Deprecated) enable support for Oprofile profiler") \
4040
\
4141
product(bool, UseTransparentHugePages, false, \
4242
"Use MADV_HUGEPAGE for large pages") \

‎src/hotspot/share/runtime/arguments.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -524,6 +524,7 @@ static SpecialFlag const special_jvm_flags[] = {
524524
{ "UseSharedSpaces", JDK_Version::jdk(18), JDK_Version::jdk(19), JDK_Version::undefined() },
525525
#ifdef LINUX
526526
{ "UseLinuxPosixThreadCPUClocks", JDK_Version::jdk(24), JDK_Version::jdk(25), JDK_Version::jdk(26) },
527+
{ "UseOprofile", JDK_Version::jdk(25), JDK_Version::jdk(26), JDK_Version::jdk(27) },
527528
#endif
528529
{ "LockingMode", JDK_Version::jdk(24), JDK_Version::jdk(26), JDK_Version::jdk(27) },
529530
// --- Deprecated alias flags (see also aliased_jvm_flags) - sorted by obsolete_in then expired_in:

‎test/hotspot/jtreg/runtime/CommandLine/VMDeprecatedOptions.java

+7
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,13 @@ public class VMDeprecatedOptions {
6363
{"CreateMinidumpOnCrash", "false"}
6464
}
6565
));
66+
if (Platform.isLinux()) {
67+
deprecated.addAll(
68+
Arrays.asList(new String[][] {
69+
{"UseOprofile", "false"}
70+
})
71+
);
72+
}
6673
if (Platform.isX86() || Platform.isX64()) {
6774
deprecated.addAll(
6875
Arrays.asList(new String[][] {

0 commit comments

Comments
 (0)
Please sign in to comment.