Thu, 14 Mar 2013 09:37:38 +0100
6733980: par compact - TraceGen1Time always shows 0.0000 seconds
Summary: Use the correct collector to retrieve accumulated gen1 trace time
Reviewed-by: johnc, jmasa
jcoomes@1746 | 1 | /* |
trims@1907 | 2 | * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. |
jcoomes@1746 | 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
jcoomes@1746 | 4 | * |
jcoomes@1746 | 5 | * This code is free software; you can redistribute it and/or modify it |
jcoomes@1746 | 6 | * under the terms of the GNU General Public License version 2 only, as |
jcoomes@1746 | 7 | * published by the Free Software Foundation. |
jcoomes@1746 | 8 | * |
jcoomes@1746 | 9 | * This code is distributed in the hope that it will be useful, but WITHOUT |
jcoomes@1746 | 10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
jcoomes@1746 | 11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
jcoomes@1746 | 12 | * version 2 for more details (a copy is included in the LICENSE file that |
jcoomes@1746 | 13 | * accompanied this code). |
jcoomes@1746 | 14 | * |
jcoomes@1746 | 15 | * You should have received a copy of the GNU General Public License version |
jcoomes@1746 | 16 | * 2 along with this work; if not, write to the Free Software Foundation, |
jcoomes@1746 | 17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
jcoomes@1746 | 18 | * |
trims@1907 | 19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
trims@1907 | 20 | * or visit www.oracle.com if you need additional information or have any |
trims@1907 | 21 | * questions. |
jcoomes@1746 | 22 | * |
jcoomes@1746 | 23 | */ |
jcoomes@1746 | 24 | |
stefank@2314 | 25 | #ifndef SHARE_VM_GC_IMPLEMENTATION_PARALLELSCAVENGE_PSCOMPACTIONMANAGER_INLINE_HPP |
stefank@2314 | 26 | #define SHARE_VM_GC_IMPLEMENTATION_PARALLELSCAVENGE_PSCOMPACTIONMANAGER_INLINE_HPP |
stefank@2314 | 27 | |
stefank@2314 | 28 | #include "gc_implementation/parallelScavenge/psCompactionManager.hpp" |
stefank@2314 | 29 | #include "gc_implementation/parallelScavenge/psParallelCompact.hpp" |
stefank@2314 | 30 | |
jcoomes@1746 | 31 | void ParCompactionManager::push_objarray(oop obj, size_t index) |
jcoomes@1746 | 32 | { |
jcoomes@1746 | 33 | ObjArrayTask task(obj, index); |
jcoomes@1746 | 34 | assert(task.is_valid(), "bad ObjArrayTask"); |
jcoomes@1993 | 35 | _objarray_stack.push(task); |
jcoomes@1746 | 36 | } |
jcoomes@1993 | 37 | |
jcoomes@1993 | 38 | void ParCompactionManager::push_region(size_t index) |
jcoomes@1993 | 39 | { |
jcoomes@1993 | 40 | #ifdef ASSERT |
jcoomes@1993 | 41 | const ParallelCompactData& sd = PSParallelCompact::summary_data(); |
jcoomes@1993 | 42 | ParallelCompactData::RegionData* const region_ptr = sd.region(index); |
jcoomes@1993 | 43 | assert(region_ptr->claimed(), "must be claimed"); |
jcoomes@1993 | 44 | assert(region_ptr->_pushed++ == 0, "should only be pushed once"); |
jcoomes@1993 | 45 | #endif |
jcoomes@1993 | 46 | region_stack()->push(index); |
jcoomes@1993 | 47 | } |
stefank@2314 | 48 | |
stefank@2314 | 49 | #endif // SHARE_VM_GC_IMPLEMENTATION_PARALLELSCAVENGE_PSCOMPACTIONMANAGER_INLINE_HPP |