Skip to content

Commit

Permalink
CRIU adds @NotCheckpointSafe for MethodAccessorGenerator.generateName()
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Feng <[email protected]>
  • Loading branch information
JasonFengJ9 committed Dec 10, 2024
1 parent ce16094 commit 3a7a390
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions closed/GensrcJ9JCL.gmk
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ $(eval $(call SetupCopyFiles,COPY_OVERLAY_FILES, \
src/java.base/share/classes/java/util/zip/ZipFile.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/jdk/internal/reflect/MethodAccessorGenerator.java \
src/java.base/share/classes/module-info.java \
src/java.base/share/classes/sun/security/jca/ProviderConfig.java \
src/java.base/share/classes/sun/security/jca/ProviderList.java \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,21 @@
* questions.
*/

/*
* ===========================================================================
* (c) Copyright IBM Corp. 2024, 2024 All Rights Reserved
* ===========================================================================
*/

package jdk.internal.reflect;

import java.security.AccessController;
import java.security.PrivilegedAction;

/*[IF CRIU_SUPPORT]*/
import openj9.internal.criu.NotCheckpointSafe;
/*[ENDIF] CRIU_SUPPORT */

/** Generator for sun.reflect.MethodAccessor and
sun.reflect.ConstructorAccessor objects using bytecodes to
implement reflection. A java.lang.reflect.Method or
Expand Down Expand Up @@ -747,6 +757,9 @@ private String buildInternalSignature() {
return sb.toString();
}

/*[IF CRIU_SUPPORT]*/
@NotCheckpointSafe
/*[ENDIF] CRIU_SUPPORT */
private static synchronized String generateName(boolean isConstructor,
boolean forSerialization)
{
Expand Down

0 comments on commit 3a7a390

Please sign in to comment.