Review request (S): 6750588: assert(lrg._area >= 0,"negative spill area") running NSK stmp0101 test
Chuck.Rasbold at Sun.COM
Tue Sep 23 10:44:06 PDT 2008
6750588: assert(lrg._area >= 0,"negative spill area") running NSK
Summary: handle NaN costs more carefully
In extreme cases not found in normal programs, an estimated block
frequency can become the float value Infinity. Calculations for cost
and area estimates in ifg_physical() can then become Inf or NaN.
Register allocation still behaves OK with these values, but asserts
will trigger without need.
The fix changes the cost calculation to not become NaN in the face of
an Inf frequency. Two asserts are tweaked to properly check for
More information about the hotspot-compiler-dev