mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-25 05:45:11 +02:00
8139434: Unify GenRemSet and CardTableRS
Reviewed-by: jwilhelm, mgerdin
This commit is contained in:
parent
ebe8b1d7f6
commit
a7d89b56a8
25 changed files with 94 additions and 257 deletions
|
@ -152,7 +152,7 @@ bool CollectorPolicy::use_should_clear_all_soft_refs(bool v) {
|
|||
return result;
|
||||
}
|
||||
|
||||
GenRemSet* CollectorPolicy::create_rem_set(MemRegion whole_heap) {
|
||||
CardTableRS* CollectorPolicy::create_rem_set(MemRegion whole_heap) {
|
||||
return new CardTableRS(whole_heap);
|
||||
}
|
||||
|
||||
|
@ -173,7 +173,7 @@ size_t CollectorPolicy::compute_heap_alignment() {
|
|||
// byte entry and the os page size is 4096, the maximum heap size should
|
||||
// be 512*4096 = 2MB aligned.
|
||||
|
||||
size_t alignment = GenRemSet::max_alignment_constraint();
|
||||
size_t alignment = CardTableRS::ct_max_alignment_constraint();
|
||||
|
||||
if (UseLargePages) {
|
||||
// In presence of large pages we have to make sure that our
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue