< prev index next >

src/share/vm/gc/parallel/psOldGen.cpp

Print this page
rev 8362 : [mq]: hotspot


   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #include "precompiled.hpp"
  26 #include "gc_implementation/parallelScavenge/parallelScavengeHeap.hpp"
  27 #include "gc_implementation/parallelScavenge/psAdaptiveSizePolicy.hpp"
  28 #include "gc_implementation/parallelScavenge/psMarkSweepDecorator.hpp"
  29 #include "gc_implementation/parallelScavenge/psOldGen.hpp"
  30 #include "gc_implementation/shared/spaceDecorator.hpp"
  31 #include "memory/cardTableModRefBS.hpp"
  32 #include "memory/gcLocker.inline.hpp"
  33 #include "oops/oop.inline.hpp"
  34 #include "runtime/java.hpp"
  35 
  36 inline const char* PSOldGen::select_name() {
  37   return UseParallelOldGC ? "ParOldGen" : "PSOldGen";
  38 }
  39 
  40 PSOldGen::PSOldGen(ReservedSpace rs, size_t alignment,
  41                    size_t initial_size, size_t min_size, size_t max_size,
  42                    const char* perf_data_name, int level):
  43   _name(select_name()), _init_gen_size(initial_size), _min_gen_size(min_size),
  44   _max_gen_size(max_size)
  45 {
  46   initialize(rs, alignment, perf_data_name, level);
  47 }
  48 
  49 PSOldGen::PSOldGen(size_t initial_size,
  50                    size_t min_size, size_t max_size,
  51                    const char* perf_data_name, int level):
  52   _name(select_name()), _init_gen_size(initial_size), _min_gen_size(min_size),




   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #include "precompiled.hpp"
  26 #include "gc/parallel/parallelScavengeHeap.hpp"
  27 #include "gc/parallel/psAdaptiveSizePolicy.hpp"
  28 #include "gc/parallel/psMarkSweepDecorator.hpp"
  29 #include "gc/parallel/psOldGen.hpp"
  30 #include "gc/shared/cardTableModRefBS.hpp"
  31 #include "gc/shared/gcLocker.inline.hpp"
  32 #include "gc/shared/spaceDecorator.hpp"
  33 #include "oops/oop.inline.hpp"
  34 #include "runtime/java.hpp"
  35 
  36 inline const char* PSOldGen::select_name() {
  37   return UseParallelOldGC ? "ParOldGen" : "PSOldGen";
  38 }
  39 
  40 PSOldGen::PSOldGen(ReservedSpace rs, size_t alignment,
  41                    size_t initial_size, size_t min_size, size_t max_size,
  42                    const char* perf_data_name, int level):
  43   _name(select_name()), _init_gen_size(initial_size), _min_gen_size(min_size),
  44   _max_gen_size(max_size)
  45 {
  46   initialize(rs, alignment, perf_data_name, level);
  47 }
  48 
  49 PSOldGen::PSOldGen(size_t initial_size,
  50                    size_t min_size, size_t max_size,
  51                    const char* perf_data_name, int level):
  52   _name(select_name()), _init_gen_size(initial_size), _min_gen_size(min_size),


< prev index next >