jcoomes@1746: /* trims@1907: * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. jcoomes@1746: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. jcoomes@1746: * jcoomes@1746: * This code is free software; you can redistribute it and/or modify it jcoomes@1746: * under the terms of the GNU General Public License version 2 only, as jcoomes@1746: * published by the Free Software Foundation. jcoomes@1746: * jcoomes@1746: * This code is distributed in the hope that it will be useful, but WITHOUT jcoomes@1746: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or jcoomes@1746: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License jcoomes@1746: * version 2 for more details (a copy is included in the LICENSE file that jcoomes@1746: * accompanied this code). jcoomes@1746: * jcoomes@1746: * You should have received a copy of the GNU General Public License version jcoomes@1746: * 2 along with this work; if not, write to the Free Software Foundation, jcoomes@1746: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. jcoomes@1746: * trims@1907: * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA trims@1907: * or visit www.oracle.com if you need additional information or have any trims@1907: * questions. jcoomes@1746: * jcoomes@1746: */ jcoomes@1746: stefank@2314: #ifndef SHARE_VM_GC_IMPLEMENTATION_PARALLELSCAVENGE_PSCOMPACTIONMANAGER_INLINE_HPP stefank@2314: #define SHARE_VM_GC_IMPLEMENTATION_PARALLELSCAVENGE_PSCOMPACTIONMANAGER_INLINE_HPP stefank@2314: stefank@2314: #include "gc_implementation/parallelScavenge/psCompactionManager.hpp" stefank@2314: #include "gc_implementation/parallelScavenge/psParallelCompact.hpp" stefank@2314: jcoomes@1746: void ParCompactionManager::push_objarray(oop obj, size_t index) jcoomes@1746: { jcoomes@1746: ObjArrayTask task(obj, index); jcoomes@1746: assert(task.is_valid(), "bad ObjArrayTask"); jcoomes@1993: _objarray_stack.push(task); jcoomes@1746: } jcoomes@1993: jcoomes@1993: void ParCompactionManager::push_region(size_t index) jcoomes@1993: { jcoomes@1993: #ifdef ASSERT jcoomes@1993: const ParallelCompactData& sd = PSParallelCompact::summary_data(); jcoomes@1993: ParallelCompactData::RegionData* const region_ptr = sd.region(index); jcoomes@1993: assert(region_ptr->claimed(), "must be claimed"); jcoomes@1993: assert(region_ptr->_pushed++ == 0, "should only be pushed once"); jcoomes@1993: #endif jcoomes@1993: region_stack()->push(index); jcoomes@1993: } stefank@2314: stefank@2314: #endif // SHARE_VM_GC_IMPLEMENTATION_PARALLELSCAVENGE_PSCOMPACTIONMANAGER_INLINE_HPP