1 /*
2 * Copyright (c) 2002, 2018, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation.
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
743 // Set boundary between young_gen and old_gen
744 assert(old_gen->reserved().end() <= young_gen->eden_space()->bottom(),
745 "old above young");
746 set_young_generation_boundary(young_gen->eden_space()->bottom());
747
748 // Initialize ref handling object for scavenging.
749 _span_based_discoverer.set_span(young_gen->reserved());
750 _ref_processor =
751 new ReferenceProcessor(&_span_based_discoverer,
752 ParallelRefProcEnabled && (ParallelGCThreads > 1), // mt processing
753 ParallelGCThreads, // mt processing degree
754 true, // mt discovery
755 ParallelGCThreads, // mt discovery degree
756 true, // atomic_discovery
757 NULL, // header provides liveness info
758 false);
759
760 // Cache the cardtable
761 _card_table = heap->card_table();
762
763 _counters = new CollectorCounters("PSScavenge", 0);
764 }
|
1 /*
2 * Copyright (c) 2002, 2019, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation.
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
743 // Set boundary between young_gen and old_gen
744 assert(old_gen->reserved().end() <= young_gen->eden_space()->bottom(),
745 "old above young");
746 set_young_generation_boundary(young_gen->eden_space()->bottom());
747
748 // Initialize ref handling object for scavenging.
749 _span_based_discoverer.set_span(young_gen->reserved());
750 _ref_processor =
751 new ReferenceProcessor(&_span_based_discoverer,
752 ParallelRefProcEnabled && (ParallelGCThreads > 1), // mt processing
753 ParallelGCThreads, // mt processing degree
754 true, // mt discovery
755 ParallelGCThreads, // mt discovery degree
756 true, // atomic_discovery
757 NULL, // header provides liveness info
758 false);
759
760 // Cache the cardtable
761 _card_table = heap->card_table();
762
763 _counters = new CollectorCounters("Parallel young collection pauses", 0);
764 }
|