--- old/src/hotspot/share/jvmci/jvmciRuntime.hpp 2018-04-27 15:31:34.722199053 +0200 +++ new/src/hotspot/share/jvmci/jvmciRuntime.hpp 2018-04-27 15:31:34.470199062 +0200 @@ -150,8 +150,10 @@ // printed as a string, otherwise the type of the object is printed // followed by its address. static void log_object(JavaThread* thread, oopDesc* object, bool as_string, bool newline); +#if INCLUDE_G1GC static void write_barrier_pre(JavaThread* thread, oopDesc* obj); static void write_barrier_post(JavaThread* thread, void* card); +#endif static jboolean validate_object(JavaThread* thread, oopDesc* parent, oopDesc* child); // used to throw exceptions from compiled JVMCI code