Mercurial > hg > graal-jvmci-8
diff src/share/vm/gc_implementation/shared/ageTable.hpp @ 6818:22b8d3d181d9
8000351: Tenuring threshold should be unsigned
Summary: Change the flags and variables related to tenuring threshold to be unsigned
Reviewed-by: jmasa, johnc
author | jwilhelm |
---|---|
date | Wed, 03 Oct 2012 20:31:41 +0200 |
parents | f95d63e2154a |
children | f2e3f0e1f97d |
line wrap: on
line diff
--- a/src/share/vm/gc_implementation/shared/ageTable.hpp Wed Oct 03 08:08:52 2012 -0700 +++ b/src/share/vm/gc_implementation/shared/ageTable.hpp Wed Oct 03 20:31:41 2012 +0200 @@ -55,7 +55,7 @@ // 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 @@ 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];