--- old/src/hotspot/share/opto/graphKit.hpp 2018-04-27 15:30:08.814202046 +0200 +++ new/src/hotspot/share/opto/graphKit.hpp 2018-04-27 15:30:08.574202054 +0200 @@ -768,6 +768,7 @@ // Used for load_store operations which loads old value. bool can_move_pre_barrier() const; +#if INCLUDE_G1GC // G1 pre/post barriers void g1_write_barrier_pre(bool do_load, Node* obj, @@ -794,6 +795,7 @@ bool g1_can_remove_pre_barrier(PhaseTransform* phase, Node* adr, BasicType bt, uint adr_idx); bool g1_can_remove_post_barrier(PhaseTransform* phase, Node* store, Node* adr); +#endif // INCLUDE_G1GC public: // Helper function to round double arguments before a call