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

TLAB logging is not correct for G1

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 11
    • Fix Version/s: 11
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
      gc
    • Resolved In Build:
      b12

      Description

      The current TLAB logging is not completely correct for G1. The logging in ThreadLocalAllocBuffer::print_stats() expects that the allocated size is:
      size_t alloc = _number_of_refills * _desired_size;

      This is not true since the last tlab in each region might have a different size due to not being allowed to span a region boundary. Fixing this could be done by adding a new value that is updated along with _number_of_refills which counts the actual size allocated.

        Attachments

          Activity

            People

            • Assignee:
              sjohanss Stefan Johansson
              Reporter:
              sjohanss Stefan Johansson
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: