mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
6484959: G1: introduce survivor spaces
6797754: G1: combined bugfix Implemented a policy to control G1 survivor space parameters. Reviewed-by: tonyp, iveresov
This commit is contained in:
parent
275a0bfb42
commit
61181babf1
13 changed files with 314 additions and 132 deletions
|
@ -67,6 +67,12 @@ void ageTable::merge(ageTable* subTable) {
|
|||
}
|
||||
}
|
||||
|
||||
void ageTable::merge_par(ageTable* subTable) {
|
||||
for (int i = 0; i < table_size; i++) {
|
||||
Atomic::add_ptr(subTable->sizes[i], &sizes[i]);
|
||||
}
|
||||
}
|
||||
|
||||
int ageTable::compute_tenuring_threshold(size_t survivor_capacity) {
|
||||
size_t desired_survivor_size = (size_t)((((double) survivor_capacity)*TargetSurvivorRatio)/100);
|
||||
size_t total = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue