1238 void ZStatHeap::set_at_relocate_start(size_t capacity, 1239 size_t allocated, 1240 size_t used) { 1241 _at_relocate_start.capacity = capacity; 1242 _at_relocate_start.reserve = reserve(used); 1243 _at_relocate_start.allocated = allocated; 1244 _at_relocate_start.used = used; 1245 _at_relocate_start.free = free(used); 1246 } 1247 1248 void ZStatHeap::set_at_relocate_end(size_t capacity, 1249 size_t allocated, 1250 size_t reclaimed, 1251 size_t used, 1252 size_t used_high, 1253 size_t used_low) { 1254 _at_relocate_end.capacity = capacity; 1255 _at_relocate_end.capacity_high = capacity; 1256 _at_relocate_end.capacity_low = _at_mark_start.capacity; 1257 _at_relocate_end.reserve = reserve(used); 1258 _at_relocate_end.reserve_high = reserve(used_high); 1259 _at_relocate_end.reserve_low = reserve(used_low); 1260 _at_relocate_end.garbage = _at_mark_end.garbage - reclaimed; 1261 _at_relocate_end.allocated = allocated; 1262 _at_relocate_end.reclaimed = reclaimed; 1263 _at_relocate_end.used = used; 1264 _at_relocate_end.used_high = used_high; 1265 _at_relocate_end.used_low = used_low; 1266 _at_relocate_end.free = free(used); 1267 _at_relocate_end.free_high = free(used_low); 1268 _at_relocate_end.free_low = free(used_high); 1269 } 1270 1271 size_t ZStatHeap::max_capacity() { 1272 return _at_initialize.max_capacity; 1273 } 1274 1275 size_t ZStatHeap::used_at_mark_start() { 1276 return _at_mark_start.used; 1277 } 1278 1279 size_t ZStatHeap::used_at_relocate_end() { | 1238 void ZStatHeap::set_at_relocate_start(size_t capacity, 1239 size_t allocated, 1240 size_t used) { 1241 _at_relocate_start.capacity = capacity; 1242 _at_relocate_start.reserve = reserve(used); 1243 _at_relocate_start.allocated = allocated; 1244 _at_relocate_start.used = used; 1245 _at_relocate_start.free = free(used); 1246 } 1247 1248 void ZStatHeap::set_at_relocate_end(size_t capacity, 1249 size_t allocated, 1250 size_t reclaimed, 1251 size_t used, 1252 size_t used_high, 1253 size_t used_low) { 1254 _at_relocate_end.capacity = capacity; 1255 _at_relocate_end.capacity_high = capacity; 1256 _at_relocate_end.capacity_low = _at_mark_start.capacity; 1257 _at_relocate_end.reserve = reserve(used); 1258 _at_relocate_end.reserve_high = reserve(used_low); 1259 _at_relocate_end.reserve_low = reserve(used_high); 1260 _at_relocate_end.garbage = _at_mark_end.garbage - reclaimed; 1261 _at_relocate_end.allocated = allocated; 1262 _at_relocate_end.reclaimed = reclaimed; 1263 _at_relocate_end.used = used; 1264 _at_relocate_end.used_high = used_high; 1265 _at_relocate_end.used_low = used_low; 1266 _at_relocate_end.free = free(used); 1267 _at_relocate_end.free_high = free(used_low); 1268 _at_relocate_end.free_low = free(used_high); 1269 } 1270 1271 size_t ZStatHeap::max_capacity() { 1272 return _at_initialize.max_capacity; 1273 } 1274 1275 size_t ZStatHeap::used_at_mark_start() { 1276 return _at_mark_start.used; 1277 } 1278 1279 size_t ZStatHeap::used_at_relocate_end() { |