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:
Jesper Wilhelmsson 2012-10-03 20:31:41 +02:00
parent 88ab075a6d
commit 3506d44c57
22 changed files with 55 additions and 55 deletions

View file

@ -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];