mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 17:44:40 +02:00
8200729: Conditional compilation of GCs
Reviewed-by: ehelin, coleenp, kvn, ihse
This commit is contained in:
parent
d1cf230fc1
commit
1cb95bd3d1
123 changed files with 661 additions and 447 deletions
|
@ -25,9 +25,7 @@
|
|||
#ifndef SHARE_VM_OOPS_OOP_INLINE_HPP
|
||||
#define SHARE_VM_OOPS_OOP_INLINE_HPP
|
||||
|
||||
#include "gc/shared/ageTable.hpp"
|
||||
#include "gc/shared/collectedHeap.hpp"
|
||||
#include "gc/shared/generation.hpp"
|
||||
#include "oops/access.inline.hpp"
|
||||
#include "oops/arrayKlass.hpp"
|
||||
#include "oops/arrayOop.hpp"
|
||||
|
@ -350,7 +348,6 @@ bool oopDesc::cas_forward_to(oop p, markOop compare) {
|
|||
return cas_set_mark_raw(m, compare) == compare;
|
||||
}
|
||||
|
||||
#if INCLUDE_ALL_GCS
|
||||
oop oopDesc::forward_to_atomic(oop p) {
|
||||
markOop oldMark = mark_raw();
|
||||
markOop forwardPtrMark = markOopDesc::encode_pointer_as_mark(p);
|
||||
|
@ -372,7 +369,6 @@ oop oopDesc::forward_to_atomic(oop p) {
|
|||
}
|
||||
return forwardee();
|
||||
}
|
||||
#endif
|
||||
|
||||
// Note that the forwardee is not the same thing as the displaced_mark.
|
||||
// The forwardee is used when copying during scavenge and mark-sweep.
|
||||
|
@ -400,7 +396,7 @@ void oopDesc::incr_age() {
|
|||
}
|
||||
}
|
||||
|
||||
#if INCLUDE_ALL_GCS
|
||||
#if INCLUDE_PARALLELGC
|
||||
void oopDesc::pc_follow_contents(ParCompactionManager* cm) {
|
||||
klass()->oop_pc_follow_contents(this, cm);
|
||||
}
|
||||
|
@ -422,7 +418,7 @@ void oopDesc::ps_push_contents(PSPromotionManager* pm) {
|
|||
}
|
||||
// Else skip it. The TypeArrayKlass in the header never needs scavenging.
|
||||
}
|
||||
#endif // INCLUDE_ALL_GCS
|
||||
#endif // INCLUDE_PARALLELGC
|
||||
|
||||
#define OOP_ITERATE_DEFN(OopClosureType, nv_suffix) \
|
||||
\
|
||||
|
@ -462,7 +458,7 @@ int oopDesc::oop_iterate_no_header(OopClosure* blk, MemRegion mr) {
|
|||
return oop_iterate_size(&cl, mr);
|
||||
}
|
||||
|
||||
#if INCLUDE_ALL_GCS
|
||||
#if INCLUDE_OOP_OOP_ITERATE_BACKWARDS
|
||||
#define OOP_ITERATE_BACKWARDS_DEFN(OopClosureType, nv_suffix) \
|
||||
\
|
||||
inline void oopDesc::oop_iterate_backwards(OopClosureType* blk) { \
|
||||
|
@ -470,7 +466,7 @@ inline void oopDesc::oop_iterate_backwards(OopClosureType* blk) { \
|
|||
}
|
||||
#else
|
||||
#define OOP_ITERATE_BACKWARDS_DEFN(OopClosureType, nv_suffix)
|
||||
#endif // INCLUDE_ALL_GCS
|
||||
#endif
|
||||
|
||||
#define ALL_OOPDESC_OOP_ITERATE(OopClosureType, nv_suffix) \
|
||||
OOP_ITERATE_DEFN(OopClosureType, nv_suffix) \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue