src/hotspot/share/gc/shared/generation.cpp
changeset 49964 99e698e94cc7
parent 49594 898ef81cbc0e
child 49982 9042ffe5b7fe
--- a/src/hotspot/share/gc/shared/generation.cpp	Thu Apr 26 12:54:53 2018 +0200
+++ b/src/hotspot/share/gc/shared/generation.cpp	Thu May 03 14:09:00 2018 +0200
@@ -77,7 +77,8 @@
 void Generation::ref_processor_init() {
   assert(_ref_processor == NULL, "a reference processor already exists");
   assert(!_reserved.is_empty(), "empty generation?");
-  _ref_processor = new ReferenceProcessor(_reserved);    // a vanilla reference processor
+  _span_based_discoverer.set_span(_reserved);
+  _ref_processor = new ReferenceProcessor(&_span_based_discoverer);    // a vanilla reference processor
   if (_ref_processor == NULL) {
     vm_exit_during_initialization("Could not allocate ReferenceProcessor object");
   }