mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-18 01:54:47 +02:00
8284944: assert(cnt++ < 40) failed: infinite cycle in loop optimization
Reviewed-by: kvn, chagedorn
This commit is contained in:
parent
e534c133af
commit
796494d0fe
2 changed files with 125 additions and 2 deletions
|
@ -2059,10 +2059,8 @@ void Compile::process_late_inline_calls_no_inline(PhaseIterGVN& igvn) {
|
|||
|
||||
bool Compile::optimize_loops(PhaseIterGVN& igvn, LoopOptsMode mode) {
|
||||
if (_loop_opts_cnt > 0) {
|
||||
debug_only( int cnt = 0; );
|
||||
while (major_progress() && (_loop_opts_cnt > 0)) {
|
||||
TracePhase tp("idealLoop", &timers[_t_idealLoop]);
|
||||
assert( cnt++ < 40, "infinite cycle in loop optimization" );
|
||||
PhaseIdealLoop::optimize(igvn, mode);
|
||||
_loop_opts_cnt--;
|
||||
if (failing()) return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue