This debugging option was made a product option. Customers should never use this. There's one test that uses it (jdk/java/lang/instrument/RedefineMethodWithAnnotations.sh).
diff --git a/src/hotspot/share/runtime/globals.hpp b/src/hotspot/share/runtime/globals.hpp
index fc2fd82..24a57d2 100644
--- a/src/hotspot/share/runtime/globals.hpp
+++ b/src/hotspot/share/runtime/globals.hpp
@@ -877,9 +877,9 @@ const intx ObjectAlignmentInBytes = 8;
"Trace flags for JVMTI functions and events") \
\
/* This option can change an EMCP method into an obsolete method. */ \
- /* This can affect tests that except specific methods to be EMCP. */ \
+ /* This can affect tests that expect specific methods to be EMCP. */ \
/* This option should be used with caution. */ \
- product(bool, StressLdcRewrite, false, \
+ product(bool, StressLdcRewrite, false, DIAGNOSTIC, \
"Force ldc -> ldc_w rewrite during RedefineClasses") \
\
product(bool, AllowRedefinitionToAddDeleteMethods, false, \
diff --git a/src/hotspot/share/runtime/globals.hpp b/src/hotspot/share/runtime/globals.hpp
index fc2fd82..24a57d2 100644
--- a/src/hotspot/share/runtime/globals.hpp
+++ b/src/hotspot/share/runtime/globals.hpp
@@ -877,9 +877,9 @@ const intx ObjectAlignmentInBytes = 8;
"Trace flags for JVMTI functions and events") \
\
/* This option can change an EMCP method into an obsolete method. */ \
- /* This can affect tests that except specific methods to be EMCP. */ \
+ /* This can affect tests that expect specific methods to be EMCP. */ \
/* This option should be used with caution. */ \
- product(bool, StressLdcRewrite, false, \
+ product(bool, StressLdcRewrite, false, DIAGNOSTIC, \
"Force ldc -> ldc_w rewrite during RedefineClasses") \
\
product(bool, AllowRedefinitionToAddDeleteMethods, false, \
- csr for
-
JDK-8258235 Make -XX:+StressLdcRewrite option a diagnostic option
-
- Closed
-