hotspot/src/share/vm/gc_implementation/parallelScavenge/psCompactionManager.cpp
changeset 11178 8318f84ac604
parent 11174 fccee5238e70
child 13195 be27e1b6a4b9
equal deleted inserted replaced
11177:40197ffbf423 11178:8318f84ac604
     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