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 * 23 */ 24 25 #include "incls/_precompiled.incl" 26 #include "incls/_psCompactionManager.cpp.incl" 27 28 PSOldGen* ParCompactionManager::_old_gen = NULL; 29 ParCompactionManager** ParCompactionManager::_manager_array = NULL; 30 OopTaskQueueSet* ParCompactionManager::_stack_array = NULL; 31 ParCompactionManager::ObjArrayTaskQueueSet* 32 ParCompactionManager::_objarray_queues = NULL; 33 ObjectStartArray* ParCompactionManager::_start_array = NULL; 34 ParMarkBitMap* ParCompactionManager::_mark_bitmap = NULL; 35 RegionTaskQueueSet* ParCompactionManager::_region_array = NULL; 36 37 ParCompactionManager::ParCompactionManager() : 38 _action(CopyAndUpdate) { 39 40 ParallelScavengeHeap* heap = (ParallelScavengeHeap*)Universe::heap(); 41 assert(heap->kind() == CollectedHeap::ParallelScavengeHeap, "Sanity"); 42 43 _old_gen = heap->old_gen(); 44 _start_array = old_gen()->start_array(); 45 46 marking_stack()->initialize(); | 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 * 23 */ 24 25 #include "precompiled.hpp" 26 #include "classfile/systemDictionary.hpp" 27 #include "gc_implementation/parallelScavenge/gcTaskManager.hpp" 28 #include "gc_implementation/parallelScavenge/objectStartArray.hpp" 29 #include "gc_implementation/parallelScavenge/parMarkBitMap.hpp" 30 #include "gc_implementation/parallelScavenge/parallelScavengeHeap.hpp" 31 #include "gc_implementation/parallelScavenge/psCompactionManager.hpp" 32 #include "gc_implementation/parallelScavenge/psOldGen.hpp" 33 #include "gc_implementation/parallelScavenge/psParallelCompact.hpp" 34 #include "oops/objArrayKlass.inline.hpp" 35 #include "oops/oop.hpp" 36 #include "oops/oop.inline.hpp" 37 #include "oops/oop.pcgc.inline.hpp" 38 #include "utilities/stack.inline.hpp" 39 40 PSOldGen* ParCompactionManager::_old_gen = NULL; 41 ParCompactionManager** ParCompactionManager::_manager_array = NULL; 42 OopTaskQueueSet* ParCompactionManager::_stack_array = NULL; 43 ParCompactionManager::ObjArrayTaskQueueSet* 44 ParCompactionManager::_objarray_queues = NULL; 45 ObjectStartArray* ParCompactionManager::_start_array = NULL; 46 ParMarkBitMap* ParCompactionManager::_mark_bitmap = NULL; 47 RegionTaskQueueSet* ParCompactionManager::_region_array = NULL; 48 49 ParCompactionManager::ParCompactionManager() : 50 _action(CopyAndUpdate) { 51 52 ParallelScavengeHeap* heap = (ParallelScavengeHeap*)Universe::heap(); 53 assert(heap->kind() == CollectedHeap::ParallelScavengeHeap, "Sanity"); 54 55 _old_gen = heap->old_gen(); 56 _start_array = old_gen()->start_array(); 57 58 marking_stack()->initialize(); |