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

Introduce helper function to clamp value to range

    XMLWordPrintable

    Details

    • Subcomponent:
      gc
    • Resolved In Build:
      b25

      Description

      In the hotspot code base there are a few places where a value is clamped to a particular range using MIN2(MAX2()) or similar.

      A specialized method for doing that would be nice, particularly because future changes will add more places when it will be used.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              tschatzl Thomas Schatzl
              Reporter:
              tschatzl Thomas Schatzl
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: