Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8257726

Make -XX:+StressLdcRewrite option a diagnostic option

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 17
    • 16
    • hotspot
    • None
    • b02

      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, \

            coleenp Coleen Phillimore
            coleenp Coleen Phillimore
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: