2945N/A * Copyright (c) 2005, 2011, Oracle and/or its affiliates. All rights reserved. 0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/A * This code is free software; you can redistribute it and/or modify it 0N/A * under the terms of the GNU General Public License version 2 only, as 0N/A * published by the Free Software Foundation. 0N/A * This code is distributed in the hope that it will be useful, but WITHOUT 0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/A * version 2 for more details (a copy is included in the LICENSE file that 0N/A * accompanied this code). 0N/A * You should have received a copy of the GNU General Public License version 0N/A * 2 along with this work; if not, write to the Free Software Foundation, 0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 1472N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 0N/A// Move to some global location 0N/A// End move to some global location 0N/A// ------------------------ Don't putback if not needed 0N/A // Actions that the compaction manager should take. 0N/A// ------------------------ End don't putback if not needed 1311N/A // 32-bit: 4K * 8 = 32KiB; 64-bit: 8K * 16 = 128KiB 0N/A // Is there a way to reuse the _marking_stack for the 375N/A // saving empty regions? For now just create a different 0N/A // type of TaskQueue. 2941N/A // Index in _region_list for current _region_stack. 2941N/A // Stacks of regions to be compacted are embedded in the tasks doing 2941N/A // the compaction. A thread that executes the task extracts the 2941N/A // region stack and drains it. These threads keep these region 2941N/A // stacks for use during compaction task stealing. If a thread 2941N/A // gets a second draining task, it pushed its current region stack 2941N/A // index into the array _recycled_stack_index and gets a new 2941N/A // region stack from the task. A thread that is executing a 2941N/A // compaction stealing task without ever having executing a 2941N/A // draining task, will get a region stack from _recycled_stack_index. 2941N/A // Array of indexes into the array of region stacks. 2941N/A // The index into _recycled_stack_index of the last region stack index 2941N/A // pushed. If -1, there are no entries into _recycled_stack_index. 2941N/A // The index into _recycled_stack_index of the last region stack index 2941N/A // popped. If -1, there has not been any entry popped. 0N/A // Array of tasks. Needed by the ParallelTaskTerminator. 0N/A // Pushes onto the marking stack. If the marking stack is full, 0N/A // pushes onto the overflow stack. 0N/A // Do not implement an equivalent stack_pop. Deal with the 0N/A // marking stack and overflow stack directly. 2941N/A // Pop and push unique reusable stack index 2941N/A // Pushes onto the region stack at the given index. If the 2941N/A // pushes onto the region overflow stack. 0N/A // Take actions in preparation for a compaction. 0N/A // void drain_stacks(); 1558N/A // Save for later processing. Must not fail. 0N/A // Access function for compaction managers 1311N/A // Process tasks remaining on any marking stack 0N/A // Process tasks remaining on any stack 0N/A "out of range manager_array access");
1879N/A#
endif // SHARE_VM_GC_IMPLEMENTATION_PARALLELSCAVENGE_PSCOMPACTIONMANAGER_HPP