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

Introduce helper function to clamp value to range

XMLWordPrintable

    • gc
    • b25

      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.

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

              Created:
              Updated:
              Resolved: