[crac] Integrated: 8321660: [CRaC] Trim native heap before checkpoint to decrease image size
Volker Simonis
simonis at openjdk.org
Wed Dec 13 15:11:16 UTC 2023
On Sun, 10 Dec 2023 18:45:50 GMT, Volker Simonis <simonis at openjdk.org> wrote:
> Before checkpointing, we should trim the native C-heap in order to decrease the size of the generated CRaC image.
>
> Without C-heap trimming, the size of a HelloWorld image is ~32m and the one for SpringPetclinic ~209m. If we trim the C-heap before checkpointin, the image size decreses to ~30m for HelloWorld and 170m for SpringPetclinic.
>
> I've also added a new logging tag `crac` because I think it would be nice to log more CRaC details/internals in universal logging.
>
> Please let me know what you think?
This pull request has now been integrated.
Changeset: a3d56c25
Author: Volker Simonis <simonis at openjdk.org>
URL: https://git.openjdk.org/crac/commit/a3d56c25eb2b68779a66145bb8d9d443f13c1d68
Stats: 16 lines in 2 files changed: 13 ins; 2 del; 1 mod
8321660: [CRaC] Trim native heap before checkpoint to decrease image size
Reviewed-by: rvansa
-------------
PR: https://git.openjdk.org/crac/pull/148
More information about the crac-dev
mailing list