mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 19:14:38 +02:00
6819061: G1: eliminate serial Other times that are proportional to the collection set length
6871109: G1: remove the concept of the scan only prefix Removed scan only regions and associated code. The young portion of the collection set is now constructed incrementally - when a young region is retired as the current allocation region it is added to the collection set. Reviewed-by: apetrusenko, iveresov, tonyp
This commit is contained in:
parent
db6aad1e4e
commit
b1867e0dd5
12 changed files with 895 additions and 1013 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2001-2009 Sun Microsystems, Inc. All Rights Reserved.
|
||||
* Copyright 2001-2010 Sun Microsystems, Inc. All Rights Reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -41,7 +41,6 @@ private:
|
|||
|
||||
int _all_regions_allocated;
|
||||
size_t _region_num;
|
||||
size_t _scan_only_prefix;
|
||||
size_t _setup_seq_num;
|
||||
|
||||
public:
|
||||
|
@ -51,13 +50,11 @@ public:
|
|||
void reset();
|
||||
void start_adding_regions();
|
||||
void stop_adding_regions();
|
||||
void record_scan_only_prefix(size_t scan_only_prefix);
|
||||
void record_surviving_words(int age_in_group, size_t surv_words);
|
||||
void all_surviving_words_recorded(bool propagate);
|
||||
const char* name() { return _name; }
|
||||
|
||||
size_t region_num() { return _region_num; }
|
||||
size_t scan_only_length() { return _scan_only_prefix; }
|
||||
double accum_surv_rate_pred(int age) {
|
||||
assert(age >= 0, "must be");
|
||||
if ((size_t)age < _stats_arrays_length)
|
||||
|
@ -82,17 +79,12 @@ public:
|
|||
|
||||
int next_age_index();
|
||||
int age_in_group(int age_index) {
|
||||
int ret = (int) (_all_regions_allocated - age_index);
|
||||
int ret = (int) (_all_regions_allocated - age_index);
|
||||
assert( ret >= 0, "invariant" );
|
||||
return ret;
|
||||
}
|
||||
int recalculate_age_index(int age_index) {
|
||||
int new_age_index = (int) _scan_only_prefix - age_in_group(age_index);
|
||||
guarantee( new_age_index >= 0, "invariant" );
|
||||
return new_age_index;
|
||||
}
|
||||
void finished_recalculating_age_indexes() {
|
||||
_all_regions_allocated = (int) _scan_only_prefix;
|
||||
_all_regions_allocated = 0;
|
||||
}
|
||||
|
||||
#ifndef PRODUCT
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue