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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • 9
    • core-libs
    • None
    • b150

      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.

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

              Created:
              Updated:
              Resolved: