Skip to content

Commit

Permalink
Merge pull request #20303 from JasonFengJ9/clnamelocknotsafe
Browse files Browse the repository at this point in the history
CRIU adds @NotCheckpointSafe at ClassLoader.getClassLoadingLock()
  • Loading branch information
tajila authored Oct 7, 2024
2 parents 845b1ce + b5b044f commit 574551f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions jcl/src/java.base/share/classes/java/lang/ClassLoader.java
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@
import jdk.internal.reflect.CallerSensitiveAdapter;
/*[ENDIF] JAVA_SPEC_VERSION >= 18 */

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

/**
* ClassLoaders are used to dynamically load, link and install
* classes into a running image.
Expand Down Expand Up @@ -1460,6 +1464,9 @@ private static boolean registerAsParallelCapable(Class<?> callerCls) {
* @see java.lang.ClassLoader
*
*/
/*[IF CRIU_SUPPORT]*/
@NotCheckpointSafe
/*[ENDIF] CRIU_SUPPORT */
protected Object getClassLoadingLock(final String className) {
Object lock = this;
if (isParallelCapable) {
Expand Down

0 comments on commit 574551f

Please sign in to comment.