# HG changeset patch # User rkennke # Date 1541618684 -3600 # Node ID dc1f9dec2018a37fedba47d8a2aedef99faaec64 # Parent 6082c529aed86d76817273e99b566105457116ab 8213469: Remove/fix leftovers from JDK-8213384: Move G1/C2 barrier verification into G1BarrierSetC2 Reviewed-by: kvn, roland diff -r 6082c529aed8 -r dc1f9dec2018 src/hotspot/share/gc/g1/c2/g1BarrierSetC2.cpp --- a/src/hotspot/share/gc/g1/c2/g1BarrierSetC2.cpp Wed Nov 07 20:21:35 2018 +0100 +++ b/src/hotspot/share/gc/g1/c2/g1BarrierSetC2.cpp Wed Nov 07 20:24:44 2018 +0100 @@ -778,6 +778,9 @@ #ifdef ASSERT void G1BarrierSetC2::verify_gc_barriers(Compile* compile, CompilePhase phase) const { + if (phase != BarrierSetC2::BeforeCodeGen) { + return; + } // Verify G1 pre-barriers const int marking_offset = in_bytes(G1ThreadLocalData::satb_mark_queue_active_offset()); diff -r 6082c529aed8 -r dc1f9dec2018 src/hotspot/share/opto/compile.cpp --- a/src/hotspot/share/opto/compile.cpp Wed Nov 07 20:21:35 2018 +0100 +++ b/src/hotspot/share/opto/compile.cpp Wed Nov 07 20:24:44 2018 +0100 @@ -76,9 +76,6 @@ #include "utilities/align.hpp" #include "utilities/copy.hpp" #include "utilities/macros.hpp" -#if INCLUDE_G1GC -#include "gc/g1/g1ThreadLocalData.hpp" -#endif // INCLUDE_G1GC #if INCLUDE_ZGC #include "gc/z/c2/zBarrierSetC2.hpp" #endif