Mercurial > hg > graal-compiler
diff src/share/vm/opto/chaitin.cpp @ 14499:1077c8270209
8033260: assert(lrg._area >= 0.0) failed: negative spill area
Summary: Change type from float to double on block frequency, and add check for +Inf - +Inf operation
Reviewed-by: kvn, roland
author | adlertz |
---|---|
date | Tue, 25 Feb 2014 17:51:27 +0100 |
parents | 04e7587c97dc |
children | 4ca6dc0799b6 |
line wrap: on
line diff
--- a/src/share/vm/opto/chaitin.cpp Tue Feb 25 14:09:02 2014 +0100 +++ b/src/share/vm/opto/chaitin.cpp Tue Feb 25 17:51:27 2014 +0100 @@ -210,7 +210,7 @@ { NOT_PRODUCT( Compile::TracePhase t3("ctorChaitin", &_t_ctorChaitin, TimeCompiler); ) - _high_frequency_lrg = MIN2(float(OPTO_LRG_HIGH_FREQ), _cfg.get_outer_loop_frequency()); + _high_frequency_lrg = MIN2(double(OPTO_LRG_HIGH_FREQ), _cfg.get_outer_loop_frequency()); // Build a list of basic blocks, sorted by frequency _blks = NEW_RESOURCE_ARRAY(Block *, _cfg.number_of_blocks());