mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8202641: Replace OOP_SINCE_SAVE_MARKS with templates
Reviewed-by: eosterlund, sjohanss
This commit is contained in:
parent
2e1bd03bad
commit
1dd85fe2f4
31 changed files with 297 additions and 276 deletions
|
@ -913,23 +913,6 @@ void GenCollectedHeap::gen_process_weak_roots(OopClosure* root_closure) {
|
|||
_old_gen->ref_processor()->weak_oops_do(root_closure);
|
||||
}
|
||||
|
||||
#define GCH_SINCE_SAVE_MARKS_ITERATE_DEFN(OopClosureType, nv_suffix) \
|
||||
void GenCollectedHeap:: \
|
||||
oop_since_save_marks_iterate(GenerationType gen, \
|
||||
OopClosureType* cur, \
|
||||
OopClosureType* older) { \
|
||||
if (gen == YoungGen) { \
|
||||
_young_gen->oop_since_save_marks_iterate##nv_suffix(cur); \
|
||||
_old_gen->oop_since_save_marks_iterate##nv_suffix(older); \
|
||||
} else { \
|
||||
_old_gen->oop_since_save_marks_iterate##nv_suffix(cur); \
|
||||
} \
|
||||
}
|
||||
|
||||
ALL_SINCE_SAVE_MARKS_CLOSURES(GCH_SINCE_SAVE_MARKS_ITERATE_DEFN)
|
||||
|
||||
#undef GCH_SINCE_SAVE_MARKS_ITERATE_DEFN
|
||||
|
||||
bool GenCollectedHeap::no_allocs_since_save_marks() {
|
||||
return _young_gen->no_allocs_since_save_marks() &&
|
||||
_old_gen->no_allocs_since_save_marks();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue