diff --git a/closed/GensrcJ9JCL.gmk b/closed/GensrcJ9JCL.gmk index a175cd4cd4b..551d9806c2e 100644 --- a/closed/GensrcJ9JCL.gmk +++ b/closed/GensrcJ9JCL.gmk @@ -1,5 +1,5 @@ # =========================================================================== -# (c) Copyright IBM Corp. 2020, 2023 All Rights Reserved +# (c) Copyright IBM Corp. 2020, 2024 All Rights Reserved # =========================================================================== # This code is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License version 2 only, as @@ -47,6 +47,7 @@ $(eval $(call SetupCopyFiles,COPY_OVERLAY_FILES, \ src/java.base/share/classes/java/util/TimerTask.java \ src/java.base/share/classes/java/util/concurrent/ConcurrentHashMap.java \ src/java.base/share/classes/jdk/internal/misc/JavaNetInetAddressAccess.java \ + src/java.base/share/classes/jdk/internal/ref/PhantomCleanable.java \ src/java.base/share/classes/sun/security/jca/ProviderConfig.java \ src/java.base/share/classes/sun/security/jca/ProviderList.java \ src/java.base/share/classes/sun/security/provider/DigestBase.java \ diff --git a/src/java.base/share/classes/jdk/internal/ref/PhantomCleanable.java b/src/java.base/share/classes/jdk/internal/ref/PhantomCleanable.java index bbcf99483c1..2bd1441cf4c 100644 --- a/src/java.base/share/classes/jdk/internal/ref/PhantomCleanable.java +++ b/src/java.base/share/classes/jdk/internal/ref/PhantomCleanable.java @@ -22,6 +22,11 @@ * or visit www.oracle.com if you need additional information or have any * questions. */ +/* + * =========================================================================== + * (c) Copyright IBM Corp. 2024, 2024 All Rights Reserved + * =========================================================================== + */ package jdk.internal.ref; @@ -30,6 +35,10 @@ import java.lang.ref.PhantomReference; import java.util.Objects; +/*[IF CRIU_SUPPORT]*/ +import openj9.internal.criu.NotCheckpointSafe; +/*[ENDIF] CRIU_SUPPORT */ + /** * PhantomCleanable subclasses efficiently encapsulate cleanup state and * the cleaning action. @@ -83,6 +92,9 @@ public PhantomCleanable(T referent, Cleaner cleaner) { /** * Insert this PhantomCleanable after the list head. */ + /*[IF CRIU_SUPPORT]*/ + @NotCheckpointSafe + /*[ENDIF] CRIU_SUPPORT */ private void insert() { synchronized (list) { prev = list; @@ -98,6 +110,9 @@ private void insert() { * @return true if Cleanable was removed or false if not because * it had already been removed before */ + /*[IF CRIU_SUPPORT]*/ + @NotCheckpointSafe + /*[ENDIF] CRIU_SUPPORT */ private boolean remove() { synchronized (list) { if (next != this) { @@ -116,6 +131,9 @@ private boolean remove() { * * @return true if the list is empty */ + /*[IF CRIU_SUPPORT]*/ + @NotCheckpointSafe + /*[ENDIF] CRIU_SUPPORT */ boolean isListEmpty() { synchronized (list) { return list == list.next;