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

G1: Fix -Wconversion warnings around GCDrainStackTargetSize

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 22
    • 22
    • hotspot
    • gc
    • b14

    Description

      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]`.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: