Mercurial > hg > graal-jvmci-8
comparison src/share/vm/gc_implementation/parallelScavenge/psPromotionManager.inline.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 | f81a7c0c618d |
children | 47bdfb3d010f d2907f74462e |
comparison
equal
deleted
inserted
replaced
6817:f81a7c0c618d | 6818:22b8d3d181d9 |
---|---|
83 bool new_obj_is_tenured = false; | 83 bool new_obj_is_tenured = false; |
84 size_t new_obj_size = o->size(); | 84 size_t new_obj_size = o->size(); |
85 | 85 |
86 if (!promote_immediately) { | 86 if (!promote_immediately) { |
87 // Find the objects age, MT safe. | 87 // Find the objects age, MT safe. |
88 int age = (test_mark->has_displaced_mark_helper() /* o->has_displaced_mark() */) ? | 88 uint age = (test_mark->has_displaced_mark_helper() /* o->has_displaced_mark() */) ? |
89 test_mark->displaced_mark_helper()->age() : test_mark->age(); | 89 test_mark->displaced_mark_helper()->age() : test_mark->age(); |
90 | 90 |
91 // Try allocating obj in to-space (unless too old) | 91 // Try allocating obj in to-space (unless too old) |
92 if (age < PSScavenge::tenuring_threshold()) { | 92 if (age < PSScavenge::tenuring_threshold()) { |
93 new_obj = (oop) _young_lab.allocate(new_obj_size); | 93 new_obj = (oop) _young_lab.allocate(new_obj_size); |