mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
6543938: G1: remove the concept of popularity
Reviewed-by: iveresov, tonyp
This commit is contained in:
parent
cb822b7e10
commit
cf2ae8d98d
19 changed files with 101 additions and 1074 deletions
|
@ -238,15 +238,6 @@ class HeapRegion: public G1OffsetTableContigSpace {
|
|||
// See "sort_index" method. -1 means is not in the array.
|
||||
int _sort_index;
|
||||
|
||||
// Means it has (or at least had) a very large RS, and should not be
|
||||
// considered for membership in a collection set.
|
||||
enum PopularityState {
|
||||
NotPopular,
|
||||
PopularPending,
|
||||
Popular
|
||||
};
|
||||
PopularityState _popularity;
|
||||
|
||||
// <PREDICTION>
|
||||
double _gc_efficiency;
|
||||
// </PREDICTION>
|
||||
|
@ -433,10 +424,6 @@ class HeapRegion: public G1OffsetTableContigSpace {
|
|||
_next_in_special_set = r;
|
||||
}
|
||||
|
||||
bool is_reserved() {
|
||||
return popular();
|
||||
}
|
||||
|
||||
bool is_on_free_list() {
|
||||
return _is_on_free_list;
|
||||
}
|
||||
|
@ -609,23 +596,6 @@ class HeapRegion: public G1OffsetTableContigSpace {
|
|||
init_top_at_mark_start();
|
||||
}
|
||||
|
||||
bool popular() { return _popularity == Popular; }
|
||||
void set_popular(bool b) {
|
||||
if (b) {
|
||||
_popularity = Popular;
|
||||
} else {
|
||||
_popularity = NotPopular;
|
||||
}
|
||||
}
|
||||
bool popular_pending() { return _popularity == PopularPending; }
|
||||
void set_popular_pending(bool b) {
|
||||
if (b) {
|
||||
_popularity = PopularPending;
|
||||
} else {
|
||||
_popularity = NotPopular;
|
||||
}
|
||||
}
|
||||
|
||||
// <PREDICTION>
|
||||
void calc_gc_efficiency(void);
|
||||
double gc_efficiency() { return _gc_efficiency;}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue