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

TLAB logging is not correct for G1

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • 11
    • 11
    • hotspot
    • None
    • gc
    • b12

      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.

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

              Created:
              Updated:
              Resolved: