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

ResourceMark missing in reportFreeListStatistics

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 9
    • hotspot
    • None
    • gc
    • b116

      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());
        }
      }

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

              Created:
              Updated:
              Resolved: