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); |