hotspot/src/share/vm/gc_implementation/parallelScavenge/psCompactionManager.inline.hpp
equal
deleted
inserted
replaced
20 * or visit www.oracle.com if you need additional information or have any |
20 * or visit www.oracle.com if you need additional information or have any |
21 * questions. |
21 * questions. |
22 * |
22 * |
23 */ |
23 */ |
24 |
24 |
|
25 #ifndef SHARE_VM_GC_IMPLEMENTATION_PARALLELSCAVENGE_PSCOMPACTIONMANAGER_INLINE_HPP |
|
26 #define SHARE_VM_GC_IMPLEMENTATION_PARALLELSCAVENGE_PSCOMPACTIONMANAGER_INLINE_HPP |
|
27 |
|
28 #include "gc_implementation/parallelScavenge/psCompactionManager.hpp" |
|
29 #include "gc_implementation/parallelScavenge/psParallelCompact.hpp" |
|
30 |
25 void ParCompactionManager::push_objarray(oop obj, size_t index) |
31 void ParCompactionManager::push_objarray(oop obj, size_t index) |
26 { |
32 { |
27 ObjArrayTask task(obj, index); |
33 ObjArrayTask task(obj, index); |
28 assert(task.is_valid(), "bad ObjArrayTask"); |
34 assert(task.is_valid(), "bad ObjArrayTask"); |
29 _objarray_stack.push(task); |
35 _objarray_stack.push(task); |
37 assert(region_ptr->claimed(), "must be claimed"); |
43 assert(region_ptr->claimed(), "must be claimed"); |
38 assert(region_ptr->_pushed++ == 0, "should only be pushed once"); |
44 assert(region_ptr->_pushed++ == 0, "should only be pushed once"); |
39 #endif |
45 #endif |
40 region_stack()->push(index); |
46 region_stack()->push(index); |
41 } |
47 } |
|
48 |
|
49 #endif // SHARE_VM_GC_IMPLEMENTATION_PARALLELSCAVENGE_PSCOMPACTIONMANAGER_INLINE_HPP |