JDK-8233702 : Introduce helper function to clamp value to range
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 14
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2019-11-06
  • Updated: 2019-12-03
  • Resolved: 2019-11-22
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 14
14 b25Fixed
Related Reports
Blocks :  
Blocks :  
Relates :  
Relates :  
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.
Comments
URL: https://hg.openjdk.java.net/jdk/jdk/rev/cc3a82fc7bcb User: tschatzl Date: 2019-11-22 09:04:11 +0000
22-11-2019