openj9
openj9 copied to clipboard
CRIU skips j9sysinfo_get_username/getpwuid to avoid checkpoint failure
CRIU skips j9sysinfo_get_username()/getpwuid() to avoid checkpoint failure
When SSSD is enabled, j9sysinfo_get_username()/getpwuid() can cause checkpoint failure, these methods will be skipped if a checkpoint can be taken, j9sysinfo_get_env() is used instead;
Added J9PortLibrary.isSafeSSSDMethod which is equivalent to !isCheckpointAllowed();
Removed obsoleted defines ARM_EMULATED, CHORUS & J9PWENT;
Refactoring variable initialization, code format around code affected.
Internal personal build
Verified manually OpenLiberty checkpoint at RHEL8 w/ SSSD enabled.
Signed-off-by: Jason Feng [email protected]