equal
deleted
inserted
replaced
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 |