Integrated: 8295433: EpsilonHeap doesn't need to override post_initialize()
Xin Liu
xliu at openjdk.org
Tue Oct 18 15:12:02 UTC 2022
On Tue, 18 Oct 2022 01:59:54 GMT, Xin Liu <xliu at openjdk.org> wrote:
> post_initialize() is a virtual function of CollectedHeap. EpsilonGC doesn't have a particular reason to override it.
> Its implementation just calls the base's post_initialize().
>
>
> void EpsilonHeap::post_initialize() {
> CollectedHeap::post_initialize();
> }
> ```
>
> In universe_post_init(), HotSpot invokes post_initialize() via vtable.
> Universe::heap()->post_initialize();
>
> By deleting it, HotSpot still needs a call via vtable, but it will jump to CollectedHeap::post_initialize() directly.
This pull request has now been integrated.
Changeset: 63867c4b
Author: Xin Liu <xliu at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/63867c4b52a331f8d77f2c32dc8053c0f990dfc6
Stats: 6 lines in 2 files changed: 0 ins; 5 del; 1 mod
8295433: EpsilonHeap doesn't need to override post_initialize()
Reviewed-by: shade, tschatzl
-------------
PR: https://git.openjdk.org/jdk/pull/10737
More information about the hotspot-gc-dev
mailing list