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

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 9
    • Affects Version/s: 9
    • Component/s: 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().

            Assignee:
            Sangheon Kim (Inactive)
            Reporter:
            Sangheon Kim (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: