8214541: ZGC: Refactoring from JDK-8214172 may leave PhaseIterGVN::_delay_transform set

Reviewed-by: eosterlund
This commit is contained in:
Roland Westrelin 2018-11-30 15:22:44 +01:00
parent cbaebf738e
commit 6cbb52dc24

View File

@ -995,13 +995,12 @@ void ZBarrierSetC2::expand_loadbarrier_optimized(PhaseMacroExpand* phase, LoadBa
}
bool ZBarrierSetC2::expand_barriers(Compile* C, PhaseIterGVN& igvn) const {
PhaseMacroExpand macro(igvn);
ZBarrierSetC2State* s = state();
if (s->load_barrier_count() > 0) {
PhaseMacroExpand macro(igvn);
#ifdef ASSERT
verify_gc_barriers(false);
#endif
igvn.set_delay_transform(true);
int skipped = 0;
while (s->load_barrier_count() > skipped) {
int load_barrier_count = s->load_barrier_count();