--- a/src/hotspot/share/gc/shared/genOopClosures.hpp Fri May 04 09:29:14 2018 +0200
+++ b/src/hotspot/share/gc/shared/genOopClosures.hpp Fri May 04 11:41:35 2018 +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