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

Simplify ss.as_string(true /* on C-heap */) to ss.freeze()

XMLWordPrintable

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

      In a few places in our code we use this pattern:

            const char* msg = ss.as_string(true /* on C-heap */);
            log_debug(nmt)("%s", msg);

      which can be simplified to:

            log_debug(nmt)("%s", ss.freeze());

            coleenp Coleen Phillimore
            gziemski Gerard Ziemski (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: