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

Log<>::vwrite could fast-path trivial fmt of "%s"

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Won't Fix
    • Affects Version/s: 9
    • Fix Version/s: 10
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
      svc
    • CPU:
      generic
    • OS:
      generic

      Description

      As a possible optimization, Log<>::vwrite could check the format string argument for the trivial case of "%s", where just a buffer-size-limited copy of the first format argument to the buffer is needed. This would save a trip through log_vsnprintf.

      outputStream::do_vsnprintf has had a similar fast-path optimization for a very long time.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              rprotacio Rachel Protacio (Inactive)
              Reporter:
              kbarrett Kim Barrett
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: