RFR: 8250961: Move Universe::update_heap_info_at_gc to CollectedHeap

Stefan Karlsson stefank at openjdk.java.net
Mon Sep 7 08:35:25 UTC 2020


On Mon, 7 Sep 2020 08:25:55 GMT, Stefan Karlsson <stefank at openjdk.org> wrote:

>> This is a small refactoring that moves `update_heap_info_at_gc()` and related members to `CollectedHeap`. There should
>> be no behavioral change.
>> jdk/hotspot tier1 passed
>> 
>> JBS: https://bugs.openjdk.java.net/browse/JDK-8250961
>
> src/hotspot/share/gc/shared/collectedHeap.hpp line 443:
> 
>> 441:   size_t _heap_capacity_at_last_gc;
>> 442:   size_t _heap_used_at_last_gc;
>> 443:
> 
> These should be initialized in the constructor.

Move these up to the other variables.

-------------

PR: https://git.openjdk.java.net/jdk/pull/27



More information about the hotspot-gc-dev mailing list