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: Unresolved
    • Icon: P4 P4
    • tbd
    • 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
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: