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

various stringStream issues

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P4 P4
    • tbd
    • 13
    • hotspot
    • None

      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.

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

              Created:
              Updated:
              Resolved: