Skip to content

Commit 2903d59

Browse files
committed
8282467: add extra diagnostics for JDK-8268184
Backport-of: d3022f87b598398d7130e984088ede6ffc9f48e1
1 parent 4b1bba8 commit 2903d59

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/hotspot/share/opto/ifg.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@
3737
#include "opto/memnode.hpp"
3838
#include "opto/opcodes.hpp"
3939

40+
#include <fenv.h>
41+
4042
PhaseIFG::PhaseIFG( Arena *arena ) : Phase(Interference_Graph), _arena(arena) {
4143
}
4244

@@ -784,7 +786,7 @@ void PhaseChaitin::add_input_to_liveout(Block* b, Node* n, IndexSet* liveout, do
784786
assert(int_pressure.current_pressure() == count_int_pressure(liveout), "the int pressure is incorrect");
785787
assert(float_pressure.current_pressure() == count_float_pressure(liveout), "the float pressure is incorrect");
786788
}
787-
assert(lrg._area >= 0.0, "negative spill area" );
789+
assert(lrg._area >= 0.0, "unexpected spill area value %g (rounding mode %x)", lrg._area, fegetround());
788790
}
789791
}
790792

@@ -895,7 +897,7 @@ uint PhaseChaitin::build_ifg_physical( ResourceArea *a ) {
895897
if (g_isfinite(cost)) {
896898
lrg._area -= cost;
897899
}
898-
assert(lrg._area >= 0.0, "negative spill area" );
900+
assert(lrg._area >= 0.0, "unexpected spill area value %g (rounding mode %x)", lrg._area, fegetround());
899901

900902
assign_high_score_to_immediate_copies(block, n, lrg, location + 1, last_inst);
901903

0 commit comments

Comments
 (0)