Skip to content

Commit 1950747

Browse files
committed
8279913: obsolete ExtendedDTraceProbes
Reviewed-by: thartmann, chagedorn
1 parent 13b20e0 commit 1950747

File tree

5 files changed

+5
-39
lines changed

5 files changed

+5
-39
lines changed

src/hotspot/share/ci/ciEnv.cpp

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -360,14 +360,8 @@ bool ciEnv::jvmti_state_changed() const {
360360
// Cache DTrace flags
361361
void ciEnv::cache_dtrace_flags() {
362362
// Need lock?
363-
_dtrace_extended_probes = ExtendedDTraceProbes;
364-
if (_dtrace_extended_probes) {
365-
_dtrace_method_probes = true;
366-
_dtrace_alloc_probes = true;
367-
} else {
368-
_dtrace_method_probes = DTraceMethodProbes;
369-
_dtrace_alloc_probes = DTraceAllocProbes;
370-
}
363+
_dtrace_method_probes = DTraceMethodProbes;
364+
_dtrace_alloc_probes = DTraceAllocProbes;
371365
}
372366

373367
// ------------------------------------------------------------------
@@ -1087,8 +1081,7 @@ void ciEnv::register_method(ciMethod* target,
10871081

10881082
// Change in DTrace flags may invalidate compilation.
10891083
if (!failing() &&
1090-
( (!dtrace_extended_probes() && ExtendedDTraceProbes) ||
1091-
(!dtrace_method_probes() && DTraceMethodProbes) ||
1084+
( (!dtrace_method_probes() && DTraceMethodProbes) ||
10921085
(!dtrace_alloc_probes() && DTraceAllocProbes) )) {
10931086
record_failure("DTrace flags change invalidated dependencies");
10941087
}

src/hotspot/share/ci/ciEnv.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ class ciEnv : StackObj {
7979
bool _jvmti_can_walk_any_space;
8080

8181
// Cache DTrace flags
82-
bool _dtrace_extended_probes;
8382
bool _dtrace_method_probes;
8483
bool _dtrace_alloc_probes;
8584

@@ -358,7 +357,6 @@ class ciEnv : StackObj {
358357

359358
// Cache DTrace flags
360359
void cache_dtrace_flags();
361-
bool dtrace_extended_probes() const { return _dtrace_extended_probes; }
362360
bool dtrace_method_probes() const { return _dtrace_method_probes; }
363361
bool dtrace_alloc_probes() const { return _dtrace_alloc_probes; }
364362

src/hotspot/share/runtime/arguments.cpp

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2836,26 +2836,7 @@ jint Arguments::parse_each_vm_init_arg(const JavaVMInitArgs* args, bool* patch_m
28362836
tail);
28372837
return JNI_EINVAL;
28382838
}
2839-
} else if (match_option(option, "-XX:+ExtendedDTraceProbes")) {
2840-
#if defined(DTRACE_ENABLED)
2841-
warning("Option ExtendedDTraceProbes was deprecated in version 19 and will likely be removed in a future release.");
2842-
warning("Use the combination of -XX:+DTraceMethodProbes, -XX:+DTraceAllocProbes and -XX:+DTraceMonitorProbes instead.");
2843-
if (FLAG_SET_CMDLINE(ExtendedDTraceProbes, true) != JVMFlag::SUCCESS) {
2844-
return JNI_EINVAL;
2845-
}
2846-
if (FLAG_SET_CMDLINE(DTraceMethodProbes, true) != JVMFlag::SUCCESS) {
2847-
return JNI_EINVAL;
2848-
}
2849-
if (FLAG_SET_CMDLINE(DTraceAllocProbes, true) != JVMFlag::SUCCESS) {
2850-
return JNI_EINVAL;
2851-
}
2852-
if (FLAG_SET_CMDLINE(DTraceMonitorProbes, true) != JVMFlag::SUCCESS) {
2853-
return JNI_EINVAL;
2854-
}
2855-
#else // defined(DTRACE_ENABLED)
2856-
jio_fprintf(defaultStream::error_stream(),
2857-
"ExtendedDTraceProbes flag is not applicable for this configuration\n");
2858-
return JNI_EINVAL;
2839+
#if !defined(DTRACE_ENABLED)
28592840
} else if (match_option(option, "-XX:+DTraceMethodProbes")) {
28602841
jio_fprintf(defaultStream::error_stream(),
28612842
"DTraceMethodProbes flag is not applicable for this configuration\n");
@@ -2868,7 +2849,7 @@ jint Arguments::parse_each_vm_init_arg(const JavaVMInitArgs* args, bool* patch_m
28682849
jio_fprintf(defaultStream::error_stream(),
28692850
"DTraceMonitorProbes flag is not applicable for this configuration\n");
28702851
return JNI_EINVAL;
2871-
#endif // defined(DTRACE_ENABLED)
2852+
#endif // !defined(DTRACE_ENABLED)
28722853
#ifdef ASSERT
28732854
} else if (match_option(option, "-XX:+FullGCALot")) {
28742855
if (FLAG_SET_CMDLINE(FullGCALot, true) != JVMFlag::SUCCESS) {

src/hotspot/share/runtime/globals.hpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1819,11 +1819,6 @@ const int ObjectAlignmentInBytes = 8;
18191819
product(bool, PauseAtExit, false, DIAGNOSTIC, \
18201820
"Pause and wait for keypress on exit if a debugger is attached") \
18211821
\
1822-
product(bool, ExtendedDTraceProbes, false, \
1823-
"(Deprecated) Enable performance-impacting dtrace probes. " \
1824-
"Use the combination of -XX:+DTraceMethodProbes, " \
1825-
"-XX:+DTraceAllocProbes and -XX:+DTraceMonitorProbes instead.") \
1826-
\
18271822
product(bool, DTraceMethodProbes, false, \
18281823
"Enable dtrace tool probes for method-entry and method-exit") \
18291824
\

test/hotspot/jtreg/serviceability/dtrace/DTraceOptionsTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ public static void main(String[] args) throws Throwable {
5656
}
5757

5858
String[] options = {
59-
"ExtendedDTraceProbes",
6059
"DTraceMethodProbes",
6160
"DTraceAllocProbes",
6261
"DTraceMonitorProbes",

0 commit comments

Comments
 (0)