src/hotspot/share/opto/compile.cpp
changeset 50525 767cdb97f103
parent 50235 ff5d0ea58d9b
child 51078 fc6cfe40e32a
equal deleted inserted replaced
50524:04f4e983c2f7 50525:767cdb97f103
    73 #include "runtime/signature.hpp"
    73 #include "runtime/signature.hpp"
    74 #include "runtime/stubRoutines.hpp"
    74 #include "runtime/stubRoutines.hpp"
    75 #include "runtime/timer.hpp"
    75 #include "runtime/timer.hpp"
    76 #include "utilities/align.hpp"
    76 #include "utilities/align.hpp"
    77 #include "utilities/copy.hpp"
    77 #include "utilities/copy.hpp"
       
    78 #include "utilities/macros.hpp"
    78 #if INCLUDE_G1GC
    79 #if INCLUDE_G1GC
    79 #include "gc/g1/g1ThreadLocalData.hpp"
    80 #include "gc/g1/g1ThreadLocalData.hpp"
    80 #endif // INCLUDE_G1GC
    81 #endif // INCLUDE_G1GC
       
    82 #if INCLUDE_ZGC
       
    83 #include "gc/z/c2/zBarrierSetC2.hpp"
       
    84 #endif
    81 
    85 
    82 
    86 
    83 // -------------------- Compile::mach_constant_base_node -----------------------
    87 // -------------------- Compile::mach_constant_base_node -----------------------
    84 // Constant table base node singleton.
    88 // Constant table base node singleton.
    85 MachConstantBaseNode* Compile::mach_constant_base_node() {
    89 MachConstantBaseNode* Compile::mach_constant_base_node() {
  2161     BREAKPOINT;
  2165     BREAKPOINT;
  2162   }
  2166   }
  2163 
  2167 
  2164 #endif
  2168 #endif
  2165 
  2169 
       
  2170 #ifdef ASSERT
       
  2171   BarrierSetC2* bs = BarrierSet::barrier_set()->barrier_set_c2();
       
  2172   bs->verify_gc_barriers(true);
       
  2173 #endif
       
  2174 
  2166   ResourceMark rm;
  2175   ResourceMark rm;
  2167   int          loop_opts_cnt;
  2176   int          loop_opts_cnt;
  2168 
  2177 
  2169   print_inlining_reinit();
  2178   print_inlining_reinit();
  2170 
  2179 
  2333       if (major_progress()) print_method(PHASE_PHASEIDEALLOOP_ITERATIONS, 2);
  2342       if (major_progress()) print_method(PHASE_PHASEIDEALLOOP_ITERATIONS, 2);
  2334       if (failing())  return;
  2343       if (failing())  return;
  2335     }
  2344     }
  2336   }
  2345   }
  2337 
  2346 
       
  2347 #if INCLUDE_ZGC
       
  2348   if (UseZGC) {
       
  2349     ZBarrierSetC2::find_dominating_barriers(igvn);
       
  2350   }
       
  2351 #endif
       
  2352 
  2338   if (failing())  return;
  2353   if (failing())  return;
  2339 
  2354 
  2340   // Ensure that major progress is now clear
  2355   // Ensure that major progress is now clear
  2341   C->clear_major_progress();
  2356   C->clear_major_progress();
  2342 
  2357 
  2359 #endif
  2374 #endif
  2360 
  2375 
  2361   {
  2376   {
  2362     TracePhase tp("macroExpand", &timers[_t_macroExpand]);
  2377     TracePhase tp("macroExpand", &timers[_t_macroExpand]);
  2363     PhaseMacroExpand  mex(igvn);
  2378     PhaseMacroExpand  mex(igvn);
       
  2379     print_method(PHASE_BEFORE_MACRO_EXPANSION, 2);
  2364     if (mex.expand_macro_nodes()) {
  2380     if (mex.expand_macro_nodes()) {
  2365       assert(failing(), "must bail out w/ explicit message");
  2381       assert(failing(), "must bail out w/ explicit message");
  2366       return;
  2382       return;
  2367     }
  2383     }
  2368   }
  2384   }
  2888   case Op_LoadNKlass:
  2904   case Op_LoadNKlass:
  2889   case Op_LoadL:
  2905   case Op_LoadL:
  2890   case Op_LoadL_unaligned:
  2906   case Op_LoadL_unaligned:
  2891   case Op_LoadPLocked:
  2907   case Op_LoadPLocked:
  2892   case Op_LoadP:
  2908   case Op_LoadP:
       
  2909 #if INCLUDE_ZGC
       
  2910   case Op_LoadBarrierSlowReg:
       
  2911   case Op_LoadBarrierWeakSlowReg:
       
  2912 #endif
  2893   case Op_LoadN:
  2913   case Op_LoadN:
  2894   case Op_LoadRange:
  2914   case Op_LoadRange:
  2895   case Op_LoadS: {
  2915   case Op_LoadS: {
  2896   handle_mem:
  2916   handle_mem:
  2897 #ifdef ASSERT
  2917 #ifdef ASSERT