G1: Fix -Wconversion warnings around GCDrainStackTargetSize

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 22
    • Affects Version/s: 22
    • Component/s: hotspot
    • gc
    • b14

      GCDrainStackTargetSize is defined as `uintx`, but all use sites expect/need `uint`.

      Another constraint is from `_stack_trim_upper_threshold(GCDrainStackTargetSize * 2 + 1)`, where the field is `uint`. Therefore, the actual valid range is `[0, (max_juint - 1)/2]`.

            Assignee:
            Albert Yang
            Reporter:
            Albert Yang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: