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

various stringStream issues

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Won't Fix
    • Affects Version/s: 13
    • Fix Version/s: tbd
    • Component/s: hotspot
    • Labels:
      None

      Description

      stringStream has some issues:

      - In dynamic mode (which is 90% of use cases) it has no size cap in dynamic mode. Hence faulty - or just very chatty - printing code can use large amounts of memory (this is similar to https://bugs.openjdk.java.net/browse/JDK-8220394)

      - Since 8224193, stringStream uses no resource area anymore as backing buffer but C-heap. A large amount of stringStream uses is for very short output - to reduce malloc calls, lets use a small internal buffer.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              stuefe Thomas Stuefe
              Reporter:
              stuefe Thomas Stuefe
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: