TLAB logging is not correct for G1

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P3
    • 11
    • Affects Version/s: 11
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: