Skip to content

Commit d72914f

Browse files
[GR-69268] Reset GlobalAtomicLong.address.
PullRequest: graal/22022
2 parents 24c43e0 + 0b587eb commit d72914f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

substratevm/src/com.oracle.svm.graal/src/com/oracle/svm/graal/substitutions/GraalSubstitutions.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626

2727
import static com.oracle.svm.core.annotate.RecomputeFieldValue.Kind.Custom;
2828
import static com.oracle.svm.core.annotate.RecomputeFieldValue.Kind.FromAlias;
29+
import static com.oracle.svm.core.annotate.RecomputeFieldValue.Kind.Reset;
2930

3031
import java.io.IOException;
3132
import java.io.PrintStream;
@@ -237,6 +238,13 @@ public static void dumpHeap(String outputFile, boolean live) throws IOException,
237238
}
238239
}
239240

241+
@TargetClass(className = "jdk.graal.compiler.serviceprovider.GlobalAtomicLong", onlyWith = GraalCompilerFeature.IsEnabled.class)
242+
final class Target_jdk_graal_compiler_serviceprovider_GlobalAtomicLong {
243+
@Alias//
244+
@RecomputeFieldValue(kind = Reset)//
245+
private volatile long address;
246+
}
247+
240248
/*
241249
* The following substitutions replace methods where reflection is used in the Graal code.
242250
*/

0 commit comments

Comments
 (0)