It would be nice to have standard methods to manipulate floating point numbers in HotSpot. One concrete example is methods for floating point comparisons, where we're not supposed to compare floating point numbers directly but always check their difference in terms of a small "epsilon" (i.e., if the difference is smaller than epsilon, assume that the two numbers are the same). This is a standard technique and, right now, we implement it in ad-hoc ways (see CR 6886024).
I'm envisaging that we can start by introducing a new all static class under utils/ with comparison methods. I'm not quite sure what other related methods we can add to that class.
I'm envisaging that we can start by introducing a new all static class under utils/ with comparison methods. I'm not quite sure what other related methods we can add to that class.
- relates to
-
JDK-6886024 G1: assert(recent_avg_pause_time_ratio() < 1.00,"All GC?")
- Resolved