[crac] RFR: 8321660: [CRaC] Trim native heap before checkpoint to decrease image size [v3]

Volker Simonis simonis at openjdk.org
Mon Dec 11 16:27:58 UTC 2023


> 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?

Volker Simonis has updated the pull request incrementally with one additional commit since the last revision:

  Need to unconditionally include os.inline.hpp. This will automatically include the right platform-specific .inline.hpp files

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

Changes:
  - all: https://git.openjdk.org/crac/pull/148/files
  - new: https://git.openjdk.org/crac/pull/148/files/52005385..acf9ad7d

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=crac&pr=148&range=02
 - incr: https://webrevs.openjdk.org/?repo=crac&pr=148&range=01-02

  Stats: 3 lines in 1 file changed: 0 ins; 2 del; 1 mod
  Patch: https://git.openjdk.org/crac/pull/148.diff
  Fetch: git fetch https://git.openjdk.org/crac.git pull/148/head:pull/148

PR: https://git.openjdk.org/crac/pull/148


More information about the crac-dev mailing list