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

Use StringBuilder instead of StringBuffer to avoid locking

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.4.0
    • 1.4.0
    • xml
    • h1186
    • generic
    • generic
    • Verified

      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()

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: