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

TLAB compute_size() should not allow any size larger than max_size

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 9
    • hotspot
    • None
    • gc
    • b115

      When we initialize TLAB, we set its maximum size by CollectedHeap::max_tlab_size().
      But from ThreadLocalAllocBuffer::compute_size(), there's no check to be less than or equal to ThreadLocalAllocBuffer::max_size().
      So sometimes ThreadLocalAllocBuffer::compute_size() would return larger than max_size().

            sangheki Sangheon Kim
            sangheki Sangheon Kim
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: