8250961: Move Universe::update_heap_info_at_gc to CollectedHeap

Reviewed-by: stefank, kbarrett
This commit is contained in:
Aditya Mandaleeka 2020-09-10 07:09:19 +00:00 committed by Stefan Karlsson
parent f78f780570
commit 6a005343b4
12 changed files with 28 additions and 30 deletions

View file

@ -237,7 +237,7 @@ void ShenandoahControlThread::run_service() {
// Notify Universe about new heap usage. This has implications for
// global soft refs policy, and we better report it every time heap
// usage goes down.
Universe::update_heap_info_at_gc();
Universe::heap()->update_capacity_and_used_at_gc();
// Signal that we have completed a visit to all live objects.
Universe::heap()->record_whole_heap_examined_timestamp();