--- old/src/hotspot/share/opto/escape.cpp 2018-04-27 15:31:55.898198316 +0200 +++ new/src/hotspot/share/opto/escape.cpp 2018-04-27 15:31:55.646198324 +0200 @@ -37,9 +37,9 @@ #include "opto/phaseX.hpp" #include "opto/movenode.hpp" #include "opto/rootnode.hpp" -#if INCLUDE_ALL_GCS +#if INCLUDE_G1GC #include "gc/g1/g1ThreadLocalData.hpp" -#endif // INCLUDE_ALL_GCS +#endif // INCLUDE_G1GC ConnectionGraph::ConnectionGraph(Compile * C, PhaseIterGVN *igvn) : _nodes(C->comp_arena(), C->unique(), C->unique(), NULL), @@ -538,6 +538,7 @@ // Pointer stores in G1 barriers looks like unsafe access. // Ignore such stores to be able scalar replace non-escaping // allocations. +#if INCLUDE_G1GC if (UseG1GC && adr->is_AddP()) { Node* base = get_addp_base(adr); if (base->Opcode() == Op_LoadP && @@ -555,6 +556,7 @@ } } } +#endif delayed_worklist->push(n); // Process unsafe access later. break; }