Skip to content

Commit 59375c6

Browse files
rvansaAntonKozlov
authored andcommitted
Use only generic CPU features
1 parent ed12ba4 commit 59375c6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: checkpoint.cmd.sh

+3
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,13 @@ export CRAC_CRIU_OPTS="--compress -o -"
1010

1111
# Ensure small PID, for privileged-less criu to be able to restore PID by bumping.
1212
# But not too small, to avoid clashes with other occasional processes on restore.
13+
# Experimentally -XX:CPUFeatures=0x21801fdbbd7,0x3e6 would work but to be on the safe
14+
# side in this example we'll go with generic
1315
exec /aws-lambda-rie /jdk/bin/java \
1416
-Xshare:off \
1517
-XX:-UsePerfData \
1618
-XX:CRaCMinPid=128 \
19+
-XX:CPUFeatures=generic \
1720
-XX:CRaCCheckpointTo=/cr \
1821
-cp /function:/function/lib/* \
1922
-Dcom.amazonaws.services.lambda.runtime.api.client.runtimeapi.NativeClient.JNI=$AWS_NATIVE_CLIENT \

0 commit comments

Comments
 (0)