mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 03:24: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
|
@ -26,9 +26,10 @@
|
|||
#define SHARE_VM_MEMORY_SPECIALIZED_OOP_CLOSURES_HPP
|
||||
|
||||
#include "runtime/atomic.hpp"
|
||||
#ifndef SERIALGC
|
||||
#include "utilities/macros.hpp"
|
||||
#if INCLUDE_ALL_GCS
|
||||
#include "gc_implementation/g1/g1_specialized_oop_closures.hpp"
|
||||
#endif
|
||||
#endif // INCLUDE_ALL_GCS
|
||||
|
||||
// The following OopClosure types get specialized versions of
|
||||
// "oop_oop_iterate" that invoke the closures' do_oop methods
|
||||
|
@ -80,20 +81,20 @@ class NoHeaderExtendedOopClosure;
|
|||
f(FastScanClosure,_nv) \
|
||||
f(FilteringClosure,_nv)
|
||||
|
||||
#ifndef SERIALGC
|
||||
#if INCLUDE_ALL_GCS
|
||||
#define SPECIALIZED_OOP_OOP_ITERATE_CLOSURES_P(f) \
|
||||
f(ParScanWithBarrierClosure,_nv) \
|
||||
f(ParScanWithoutBarrierClosure,_nv)
|
||||
#else // SERIALGC
|
||||
#else // INCLUDE_ALL_GCS
|
||||
#define SPECIALIZED_OOP_OOP_ITERATE_CLOSURES_P(f)
|
||||
#endif // SERIALGC
|
||||
#endif // INCLUDE_ALL_GCS
|
||||
|
||||
#define SPECIALIZED_OOP_OOP_ITERATE_CLOSURES_1(f) \
|
||||
f(NoHeaderExtendedOopClosure,_nv) \
|
||||
SPECIALIZED_OOP_OOP_ITERATE_CLOSURES_S(f) \
|
||||
SPECIALIZED_OOP_OOP_ITERATE_CLOSURES_P(f)
|
||||
|
||||
#ifndef SERIALGC
|
||||
#if INCLUDE_ALL_GCS
|
||||
#define SPECIALIZED_OOP_OOP_ITERATE_CLOSURES_2(f) \
|
||||
f(MarkRefsIntoAndScanClosure,_nv) \
|
||||
f(Par_MarkRefsIntoAndScanClosure,_nv) \
|
||||
|
@ -104,9 +105,9 @@ class NoHeaderExtendedOopClosure;
|
|||
f(CMSKeepAliveClosure,_nv) \
|
||||
f(CMSInnerParMarkAndPushClosure,_nv) \
|
||||
FURTHER_SPECIALIZED_OOP_OOP_ITERATE_CLOSURES(f)
|
||||
#else // SERIALGC
|
||||
#else // INCLUDE_ALL_GCS
|
||||
#define SPECIALIZED_OOP_OOP_ITERATE_CLOSURES_2(f)
|
||||
#endif // SERIALGC
|
||||
#endif // INCLUDE_ALL_GCS
|
||||
|
||||
|
||||
// We separate these out, because sometime the general one has
|
||||
|
@ -120,7 +121,7 @@ class NoHeaderExtendedOopClosure;
|
|||
#define ALL_OOP_OOP_ITERATE_CLOSURES_2(f) \
|
||||
SPECIALIZED_OOP_OOP_ITERATE_CLOSURES_2(f)
|
||||
|
||||
#ifndef SERIALGC
|
||||
#if INCLUDE_ALL_GCS
|
||||
// This macro applies an argument macro to all OopClosures for which we
|
||||
// want specialized bodies of a family of methods related to
|
||||
// "par_oop_iterate". The arguments to f are the same as above.
|
||||
|
@ -136,7 +137,7 @@ class NoHeaderExtendedOopClosure;
|
|||
#define ALL_PAR_OOP_ITERATE_CLOSURES(f) \
|
||||
f(ExtendedOopClosure,_v) \
|
||||
SPECIALIZED_PAR_OOP_ITERATE_CLOSURES(f)
|
||||
#endif // SERIALGC
|
||||
#endif // INCLUDE_ALL_GCS
|
||||
|
||||
// This macro applies an argument macro to all OopClosures for which we
|
||||
// want specialized bodies of a family of methods related to
|
||||
|
@ -155,14 +156,14 @@ class NoHeaderExtendedOopClosure;
|
|||
f(ScanClosure,_nv) \
|
||||
f(FastScanClosure,_nv)
|
||||
|
||||
#ifndef SERIALGC
|
||||
#if INCLUDE_ALL_GCS
|
||||
#define SPECIALIZED_SINCE_SAVE_MARKS_CLOSURES_YOUNG_P(f) \
|
||||
f(ParScanWithBarrierClosure,_nv) \
|
||||
f(ParScanWithoutBarrierClosure,_nv) \
|
||||
FURTHER_SPECIALIZED_SINCE_SAVE_MARKS_CLOSURES(f)
|
||||
#else // SERIALGC
|
||||
#else // INCLUDE_ALL_GCS
|
||||
#define SPECIALIZED_SINCE_SAVE_MARKS_CLOSURES_YOUNG_P(f)
|
||||
#endif // SERIALGC
|
||||
#endif // INCLUDE_ALL_GCS
|
||||
|
||||
#define SPECIALIZED_SINCE_SAVE_MARKS_CLOSURES_YOUNG(f) \
|
||||
SPECIALIZED_SINCE_SAVE_MARKS_CLOSURES_YOUNG_S(f) \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue