equal
deleted
inserted
replaced
509 address bottom = _last_verified_top; |
509 address bottom = _last_verified_top; |
510 address top = (address)(current_dump_space()->top()); |
510 address top = (address)(current_dump_space()->top()); |
511 size_t used = size_t(top - bottom) + _other_region_used_bytes; |
511 size_t used = size_t(top - bottom) + _other_region_used_bytes; |
512 int diff = int(estimate) - int(used); |
512 int diff = int(estimate) - int(used); |
513 |
513 |
514 log_info(cds)("%s estimate = %lu used = %lu; diff = %d bytes", which, estimate, used, diff); |
514 log_info(cds)("%s estimate = " SIZE_FORMAT " used = " SIZE_FORMAT "; diff = %d bytes", which, estimate, used, diff); |
515 assert(diff >= 0, "Estimate is too small"); |
515 assert(diff >= 0, "Estimate is too small"); |
516 |
516 |
517 _last_verified_top = top; |
517 _last_verified_top = top; |
518 _other_region_used_bytes = 0; |
518 _other_region_used_bytes = 0; |
519 } |
519 } |