Enhance TLABWasteIncrement related codes to prevent an overflow

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: 9
    • Component/s: hotspot
    • None
    • gc

      JDK-8142341 will add 'range' and 'constraint' for TLABWasteIncrement.
      The reason for 'constraint' is to prevent an overflow at ThreadLocalAllocBuffer::record_slow_allocation() when adding refill_waste_limit() and refill_waste_limit_increment().
      As this function would be called many times, we need to prevent an overflow at record_slow_allocation() as well.

      Same work should be done places which calls ThreadLocalAllocBuffer::refill_waste_limit_increment() at each generated codes. (e.g. MacroAssembler::tlab_refill() )

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

              Created:
              Updated: