[crac] RFR: Environment vars propagation into restored process

Roman Marchenko rmarchenko at openjdk.org
Tue Jan 31 07:26:38 UTC 2023

On Mon, 3 Oct 2022 15:21:05 GMT, Dan Heidinga <heidinga at openjdk.org> wrote:

> We should also consider doing something similar to the OpenJ9 approach where we restrict the set of env vars available prior to the checkpoint (minimize the accidental use of checkpoint env), and limit the env var changes to only add new env vars (no inconsistencies). This got them a long ways in their work with Liberty though they did find it necessary to eventually support overriding some env vars.

Recently I realized that if users don't like some variables to be propagated into a restored process, they can prepare their environment as they want before a restore by setting and/or unsetting any environment variables they want. So there is no need to implement additional solutions in CRaC. I've extended the test with the example (#42).


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

More information about the crac-dev mailing list