Skip to content

Commit c60d176

Browse files
committed
CRIU adds @NotCheckpointSafe for ZipFile.getEntry(String)
Signed-off-by: Jason Feng <[email protected]>
1 parent a9c3b9a commit c60d176

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

closed/GensrcJ9JCL.gmk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ $(eval $(call SetupCopyFiles,COPY_OVERLAY_FILES, \
4848
src/java.base/share/classes/java/util/Timer.java \
4949
src/java.base/share/classes/java/util/TimerTask.java \
5050
src/java.base/share/classes/java/util/concurrent/ConcurrentHashMap.java \
51+
src/java.base/share/classes/java/util/zip/ZipFile.java \
5152
src/java.base/share/classes/jdk/internal/access/JavaNetInetAddressAccess.java \
5253
src/java.base/share/classes/jdk/internal/ref/PhantomCleanable.java \
5354
src/java.base/share/classes/module-info.java \

src/java.base/share/classes/java/util/zip/ZipFile.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@
2323
* questions.
2424
*/
2525

26+
/*
27+
* ===========================================================================
28+
* (c) Copyright IBM Corp. 2024, 2024 All Rights Reserved
29+
* ===========================================================================
30+
*/
31+
2632
package java.util.zip;
2733

2834
import java.io.Closeable;
@@ -75,6 +81,10 @@
7581
import static java.util.zip.ZipConstants64.*;
7682
import static java.util.zip.ZipUtils.*;
7783

84+
/*[IF CRIU_SUPPORT]*/
85+
import openj9.internal.criu.NotCheckpointSafe;
86+
/*[ENDIF] CRIU_SUPPORT */
87+
7888
/**
7989
* This class is used to read entries from a zip file.
8090
*
@@ -331,6 +341,9 @@ public String getComment() {
331341
* @return the zip file entry, or null if not found
332342
* @throws IllegalStateException if the zip file has been closed
333343
*/
344+
/*[IF CRIU_SUPPORT]*/
345+
@NotCheckpointSafe
346+
/*[ENDIF] CRIU_SUPPORT */
334347
public ZipEntry getEntry(String name) {
335348
Objects.requireNonNull(name, "name");
336349
ZipEntry entry = null;

0 commit comments

Comments
 (0)