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

Use StringBuilder instead of StringBuffer to avoid locking

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 1.4.0
    • Fix Version/s: 1.4.0
    • Component/s: xml
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      h1186
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Description

      The following methods can show up as having high lock times which are using StringBuffer in some xml workloads. These may be able to be migrated to using StringBuilder:
      - com.sun.org.apache.xalan.internal.xsltc.dom.NodeCounter.formatNumbers(int[])
      - com.sun.org.apache.xerces.internal.dom.DefferredDocumentImpl.getNodeValueString(int, boolean)
      - com.sun.org.apache.xerces.internal.parsers.AbstractDOMParser.reset()
      - com.sun.org.apache.xalan.xsltc.runtime.StringValueHandler.getValue()

        Attachments

          Activity

            People

            Assignee:
            joehw Joe Wang
            Reporter:
            huntch Charlie Hunt
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: