--- old/src/hotspot/share/gc/shared/genOopClosures.hpp 2018-04-27 15:29:54.474202545 +0200 +++ new/src/hotspot/share/gc/shared/genOopClosures.hpp 2018-04-27 15:29:54.230202554 +0200 @@ -94,6 +94,7 @@ void do_cld_barrier(); }; +#if INCLUDE_SERIALGC // Closure for scanning DefNewGeneration. // @@ -132,6 +133,8 @@ inline void do_oop_nv(narrowOop* p); }; +#endif // INCLUDE_SERIALGC + class CLDScanClosure: public CLDClosure { OopsInClassLoaderDataOrGenClosure* _scavenge_closure; // true if the the modified oops state should be saved. @@ -161,6 +164,8 @@ inline bool do_metadata_nv() { assert(!_cl->do_metadata(), "assumption broken, must change to 'return _cl->do_metadata()'"); return false; } }; +#if INCLUDE_SERIALGC + // Closure for scanning DefNewGeneration's weak references. // NOTE: very much like ScanClosure but not derived from // OopsInGenClosure -- weak references are processed all @@ -178,4 +183,6 @@ inline void do_oop_nv(narrowOop* p); }; +#endif // INCLUDE_SERIALGC + #endif // SHARE_VM_GC_SHARED_GENOOPCLOSURES_HPP