mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 11:34:38 +02:00
8005915: Unify SERIALGC and INCLUDE_ALTERNATE_GCS
Rename INCLUDE_ALTERNATE_GCS to INCLUDE_ALL_GCS and replace SERIALGC with INCLUDE_ALL_GCS. Reviewed-by: coleenp, stefank
This commit is contained in:
parent
1c9730cfb8
commit
698fba94ef
119 changed files with 560 additions and 447 deletions
|
@ -29,6 +29,7 @@
|
|||
#include "memory/barrierSet.hpp"
|
||||
#include "memory/generationSpec.hpp"
|
||||
#include "memory/genRemSet.hpp"
|
||||
#include "utilities/macros.hpp"
|
||||
|
||||
// This class (or more correctly, subtypes of this class)
|
||||
// are used to define global garbage collector attributes.
|
||||
|
@ -48,10 +49,10 @@
|
|||
class GenCollectorPolicy;
|
||||
class TwoGenerationCollectorPolicy;
|
||||
class AdaptiveSizePolicy;
|
||||
#ifndef SERIALGC
|
||||
#if INCLUDE_ALL_GCS
|
||||
class ConcurrentMarkSweepPolicy;
|
||||
class G1CollectorPolicy;
|
||||
#endif // SERIALGC
|
||||
#endif // INCLUDE_ALL_GCS
|
||||
|
||||
class GCPolicyCounters;
|
||||
class MarkSweepPolicy;
|
||||
|
@ -134,21 +135,21 @@ class CollectorPolicy : public CHeapObj<mtGC> {
|
|||
virtual GenCollectorPolicy* as_generation_policy() { return NULL; }
|
||||
virtual TwoGenerationCollectorPolicy* as_two_generation_policy() { return NULL; }
|
||||
virtual MarkSweepPolicy* as_mark_sweep_policy() { return NULL; }
|
||||
#ifndef SERIALGC
|
||||
#if INCLUDE_ALL_GCS
|
||||
virtual ConcurrentMarkSweepPolicy* as_concurrent_mark_sweep_policy() { return NULL; }
|
||||
virtual G1CollectorPolicy* as_g1_policy() { return NULL; }
|
||||
#endif // SERIALGC
|
||||
#endif // INCLUDE_ALL_GCS
|
||||
// Note that these are not virtual.
|
||||
bool is_generation_policy() { return as_generation_policy() != NULL; }
|
||||
bool is_two_generation_policy() { return as_two_generation_policy() != NULL; }
|
||||
bool is_mark_sweep_policy() { return as_mark_sweep_policy() != NULL; }
|
||||
#ifndef SERIALGC
|
||||
#if INCLUDE_ALL_GCS
|
||||
bool is_concurrent_mark_sweep_policy() { return as_concurrent_mark_sweep_policy() != NULL; }
|
||||
bool is_g1_policy() { return as_g1_policy() != NULL; }
|
||||
#else // SERIALGC
|
||||
#else // INCLUDE_ALL_GCS
|
||||
bool is_concurrent_mark_sweep_policy() { return false; }
|
||||
bool is_g1_policy() { return false; }
|
||||
#endif // SERIALGC
|
||||
#endif // INCLUDE_ALL_GCS
|
||||
|
||||
|
||||
virtual BarrierSet::Name barrier_set_name() = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue