src/share/vm/gc_implementation/parallelScavenge/psPromotionManager.inline.hpp

changeset 4129
22b8d3d181d9
parent 4128
f81a7c0c618d
child 5202
47bdfb3d010f
child 6441
d2907f74462e
equal deleted inserted replaced
4128:f81a7c0c618d 4129: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);

mercurial