mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 23:34:52 +02:00
8000351: Tenuring threshold should be unsigned
Change the flags and variables related to tenuring threshold to be unsigned Reviewed-by: jmasa, johnc
This commit is contained in:
parent
88ab075a6d
commit
3506d44c57
22 changed files with 55 additions and 55 deletions
|
@ -55,7 +55,7 @@ class ageTable VALUE_OBJ_CLASS_SPEC {
|
|||
|
||||
// add entry
|
||||
void add(oop p, size_t oop_size) {
|
||||
int age = p->age();
|
||||
uint age = p->age();
|
||||
assert(age > 0 && age < table_size, "invalid age of object");
|
||||
sizes[age] += oop_size;
|
||||
}
|
||||
|
@ -66,7 +66,7 @@ class ageTable VALUE_OBJ_CLASS_SPEC {
|
|||
void merge_par(ageTable* subTable);
|
||||
|
||||
// calculate new tenuring threshold based on age information
|
||||
int compute_tenuring_threshold(size_t survivor_capacity);
|
||||
uint compute_tenuring_threshold(size_t survivor_capacity);
|
||||
|
||||
private:
|
||||
PerfVariable* _perf_sizes[table_size];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue