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

Use a bitmap to control StackTraceElement::toString format and save footprint

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b150

      Description

      JDK-6479237 has modified the format of StackTraceElement::toString. Because the values of the public fields are not sufficient to disambiguate between the different format alternatives, JDK-6479237 also introduced a non transient classOrLoaderModuleClassName field, which is used when the StackTraceElement is created by the VM when filling in a Throwable stack trace from its back trace.

      When non null, this field will eventually contain the "[[class-loader-name]/[module-name[@module-version]]]" string to be used as part of the StackTraceElement::toString representation.

      Instead of storing a String, this field could instead store a bitmap telling which field should be omitted from the StackTraceElement::toString representation - thus reducing the footprint of the Throwable's StackTraceElement instances.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                bchristi Brent Christian
                Reporter:
                dfuchs Daniel Fuchs
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: