8223389: Shenandoah optimizations fail with assert(!phase->exceeding_node_budget())

Reviewed-by: thartmann
This commit is contained in:
Roland Westrelin 2019-05-06 13:51:02 +02:00
parent 63dbcdc874
commit 8b07b191c3

View File

@ -1950,6 +1950,9 @@ void ShenandoahBarrierC2Support::optimize_after_expansion(VectorSet &visited, No
head->verify_strip_mined(0);
}
move_heap_stable_test_out_of_loop(iff, phase);
AutoNodeBudget node_budget(phase);
if (loop->policy_unswitching(phase)) {
if (head->is_strip_mined()) {
OuterStripMinedLoopNode* outer = head->as_CountedLoop()->outer_loop();