--- old/src/hotspot/share/c1/c1_LIRGenerator.cpp 2018-04-11 11:32:58.553096300 +0200 +++ new/src/hotspot/share/c1/c1_LIRGenerator.cpp 2018-04-11 11:32:58.351087573 +0200 @@ -44,6 +44,7 @@ #include "utilities/bitMap.inline.hpp" #include "utilities/macros.hpp" #if INCLUDE_ALL_GCS +#include "gc/g1/g1ThreadLocalData.hpp" #include "gc/g1/heapRegion.hpp" #endif // INCLUDE_ALL_GCS #ifdef TRACE_HAVE_INTRINSICS @@ -1506,10 +1507,7 @@ } LIR_Opr thrd = getThreadPointer(); LIR_Address* mark_active_flag_addr = - new LIR_Address(thrd, - in_bytes(JavaThread::satb_mark_queue_offset() + - SATBMarkQueue::byte_offset_of_active()), - flag_type); + new LIR_Address(thrd, in_bytes(G1ThreadLocalData::satb_mark_queue_active_offset()), flag_type); // Read the marking-in-progress flag. LIR_Opr flag_val = new_register(T_INT); __ load(mark_active_flag_addr, flag_val);