src/share/vm/memory/generation.cpp

Print this page

        

*** 81,98 **** prev_used / K, used() / K, capacity() / K); } } // By default we get a single threaded default reference processor; ! // generations needing multi-threaded refs discovery override this method. 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, // span ! refs_discovery_is_atomic(), // atomic_discovery ! refs_discovery_is_mt()); // mt_discovery if (_ref_processor == NULL) { vm_exit_during_initialization("Could not allocate ReferenceProcessor object"); } } --- 81,95 ---- prev_used / K, used() / K, capacity() / K); } } // By default we get a single threaded default reference processor; ! // generations needing multi-threaded refs processing or discovery override this method. 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 if (_ref_processor == NULL) { vm_exit_during_initialization("Could not allocate ReferenceProcessor object"); } }