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

Make -XX:+StressLdcRewrite option a diagnostic option

    XMLWordPrintable

Details

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

    Description

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

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: