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

ResourceMark missing in reportFreeListStatistics

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
      gc
    • Resolved In Build:
      b116

      Description

      A ResourceMark is missing in when log.debug_stream() is created:
      void CompactibleFreeListSpace::reportFreeListStatistics(const char* title) const {
        assert_lock_strong(&_freelistLock);
        Log(gc, freelist, stats) log;
        if (!log.is_debug()) {
          return;
        }
        log.debug("%s", title);
        _dictionary->report_statistics(log.debug_stream());
        if (log.is_trace()) {
          ResourceMark rm;
          reportIndexedFreeListStatistics(log.trace_stream());
          size_t total_size = totalSizeInIndexedFreeLists() +
                             _dictionary->total_chunk_size(DEBUG_ONLY(freelistLock()));
          log.trace(" free=" SIZE_FORMAT " frag=%1.4f", total_size, flsFrag());
        }
      }

        Attachments

          Activity

            People

            • Assignee:
              stefank Stefan Karlsson
              Reporter:
              stefank Stefan Karlsson
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: