Path: blob/aarch64-shenandoah-jdk8u272-b10/hotspot/src/share/vm/gc_implementation/concurrentMarkSweep/cmsCollectorPolicy.hpp
38920 views
/*1* Copyright (c) 2007, 2013, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation.7*8* This code is distributed in the hope that it will be useful, but WITHOUT9* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or10* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License11* version 2 for more details (a copy is included in the LICENSE file that12* accompanied this code).13*14* You should have received a copy of the GNU General Public License version15* 2 along with this work; if not, write to the Free Software Foundation,16* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.17*18* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA19* or visit www.oracle.com if you need additional information or have any20* questions.21*22*/2324#ifndef SHARE_VM_GC_IMPLEMENTATION_CONCURRENTMARKSWEEP_CMSCOLLECTORPOLICY_HPP25#define SHARE_VM_GC_IMPLEMENTATION_CONCURRENTMARKSWEEP_CMSCOLLECTORPOLICY_HPP2627#include "memory/collectorPolicy.hpp"2829class ConcurrentMarkSweepPolicy : public TwoGenerationCollectorPolicy {30protected:31void initialize_alignments();32void initialize_generations();3334public:35ConcurrentMarkSweepPolicy() {}3637ConcurrentMarkSweepPolicy* as_concurrent_mark_sweep_policy() { return this; }3839void initialize_gc_policy_counters();4041virtual void initialize_size_policy(size_t init_eden_size,42size_t init_promo_size,43size_t init_survivor_size);4445// Returns true if the incremental mode is enabled.46virtual bool has_soft_ended_eden();47};4849class ASConcurrentMarkSweepPolicy : public ConcurrentMarkSweepPolicy {50public:5152// Initialize the jstat counters. This method requires a53// size policy. The size policy is expected to be created54// after the generations are fully initialized so the55// initialization of the counters need to be done post56// the initialization of the generations.57void initialize_gc_policy_counters();5859virtual CollectorPolicy::Name kind() {60return CollectorPolicy::ASConcurrentMarkSweepPolicyKind;61}62};6364#endif // SHARE_VM_GC_IMPLEMENTATION_CONCURRENTMARKSWEEP_CMSCOLLECTORPOLICY_HPP656667