src/share/vm/gc_implementation/parallelScavenge/psCompactionManager.cpp

changeset 3298
7913e93dca52
parent 3294
bca17e38de00
child 3900
d2a62e0f25eb
equal deleted inserted replaced
3297:ea640b5e949a 3298:7913e93dca52
1 /* 1 /*
2 * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2005, 2011, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 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 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
157 return (action() == ParCompactionManager::Copy) || 157 return (action() == ParCompactionManager::Copy) ||
158 (action() == ParCompactionManager::CopyAndUpdate) || 158 (action() == ParCompactionManager::CopyAndUpdate) ||
159 (action() == ParCompactionManager::UpdateAndCopy); 159 (action() == ParCompactionManager::UpdateAndCopy);
160 } 160 }
161 161
162 bool ParCompactionManager::should_verify_only() {
163 assert(action() != NotValid, "Action is not set");
164 return action() == ParCompactionManager::VerifyUpdate;
165 }
166
167 bool ParCompactionManager::should_reset_only() {
168 assert(action() != NotValid, "Action is not set");
169 return action() == ParCompactionManager::ResetObjects;
170 }
171
172 void ParCompactionManager::region_list_push(uint list_index, 162 void ParCompactionManager::region_list_push(uint list_index,
173 size_t region_index) { 163 size_t region_index) {
174 region_list(list_index)->push(region_index); 164 region_list(list_index)->push(region_index);
175 } 165 }
176 166

mercurial