Add macro for Unified Logging to internalize ResourceMark allocation

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Won't Fix
    • Priority: P3
    • 10
    • Affects Version/s: 9
    • Component/s: hotspot
    • svc

      To improve clarity and conciseness in logging code, a macro should be added so that when LogHandle(<tag>)::<level>_stream() is passed into a logging function, a ResourceMark is automatically created. A macro is also needed for when the external_name() function is used with classunload logging, so that

      if (log_is_enabled(Trace, classunload)) {
      ResourceMark rm;
      log_trace(classunload)("unlinking class (sibling) %s", sibling->external_name());
      }

      does not require the first two lines.

            Assignee:
            Rachel Protacio (Inactive)
            Reporter:
            Rachel Protacio (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: