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

Clean up usage of ResourceMark in print functions with an outputStream argument

    XMLWordPrintable

    Details

      Description

      JDK-8222893 fixed a bug due to the usage of a ResourceMark in a print function. The RFR [1] states that:

      "print functions with outputStream should not have a ResourceMark because you could call it with a LogStream or stream that was allocated outside the resource mark. The caller needs the ResourceMark."

      As a follow-up, we should take a closer look at other print functions with an outputStream argument which also define a ResourceMark like Klass::print_on(outputStream*) and clean these up.


      [1] https://mail.openjdk.java.net/pipermail/hotspot-runtime-dev/2019-May/034095.html

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              coleenp Coleen Phillimore
              Reporter:
              chagedorn Christian Hagedorn
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: