Skip to content

Commit

Permalink
Print peristent JAR assumptions
Browse files Browse the repository at this point in the history
Reviewed-by: heidinga
  • Loading branch information
AntonKozlov committed Dec 19, 2022
1 parent 9272770 commit 65e0785
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -36,6 +36,7 @@
import java.util.jar.JarFile;

public class PersistentJarFile extends JarFile implements JDKResource {
static final System.Logger logger = System.getLogger("jdk.crac");

public PersistentJarFile(File file, boolean b, int openRead, Runtime.Version runtimeVersion) throws IOException {
super(file, b, openRead, runtimeVersion);
Expand All @@ -44,6 +45,7 @@ public PersistentJarFile(File file, boolean b, int openRead, Runtime.Version run

@Override
public void beforeCheckpoint(Context<? extends Resource> context) throws Exception {
logger.log(System.Logger.Level.INFO, this.getName() + " is recorded as always available on restore");
SharedSecrets.getJavaUtilZipFileAccess().beforeCheckpoint(this);
}

Expand Down

0 comments on commit 65e0785

Please sign in to comment.