--- old/src/hotspot/share/opto/escape.cpp 2018-04-11 11:33:03.741320433 +0200 +++ new/src/hotspot/share/opto/escape.cpp 2018-04-11 11:33:03.535311534 +0200 @@ -37,6 +37,9 @@ #include "opto/phaseX.hpp" #include "opto/movenode.hpp" #include "opto/rootnode.hpp" +#if INCLUDE_ALL_GCS +#include "gc/g1/g1ThreadLocalData.hpp" +#endif // INCLUDE_ALL_GCS ConnectionGraph::ConnectionGraph(Compile * C, PhaseIterGVN *igvn) : _nodes(C->comp_arena(), C->unique(), C->unique(), NULL), @@ -543,12 +546,10 @@ Node* tls = get_addp_base(adr); if (tls->Opcode() == Op_ThreadLocal) { int offs = (int)igvn->find_intptr_t_con(adr->in(AddPNode::Offset), Type::OffsetBot); - if (offs == in_bytes(JavaThread::satb_mark_queue_offset() + - SATBMarkQueue::byte_offset_of_buf())) { + if (offs == in_bytes(G1ThreadLocalData::satb_mark_queue_buffer_offset())) { break; // G1 pre barrier previous oop value store. } - if (offs == in_bytes(JavaThread::dirty_card_queue_offset() + - DirtyCardQueue::byte_offset_of_buf())) { + if (offs == in_bytes(G1ThreadLocalData::dirty_card_queue_buffer_offset())) { break; // G1 post barrier card address store. } }