8214541: ZGC: Refactoring from JDK-8214172 may leave PhaseIterGVN::_delay_transform set
authorroland
Fri, 30 Nov 2018 15:22:44 +0100
changeset 52829 af52abc1f61e
parent 52828 f6005102c6ef
child 52830 726f6a23f004
8214541: ZGC: Refactoring from JDK-8214172 may leave PhaseIterGVN::_delay_transform set Reviewed-by: eosterlund
src/hotspot/share/gc/z/c2/zBarrierSetC2.cpp
--- a/src/hotspot/share/gc/z/c2/zBarrierSetC2.cpp	Tue Dec 04 21:13:45 2018 -0800
+++ b/src/hotspot/share/gc/z/c2/zBarrierSetC2.cpp	Fri Nov 30 15:22:44 2018 +0100
@@ -995,13 +995,12 @@
 }
 
 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();