Skip to content

Commit 6831d92

Browse files
committed
[GR-64820] Record watchdog activity inside NativeImageCodeCache.layoutConstants.
PullRequest: graal/20744
2 parents 6622b17 + 291c40e commit 6831d92

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/image/NativeImageCodeCache.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ public CompilationResult compilationResultFor(HostedMethod method) {
208208
public abstract void layoutMethods(DebugContext debug, BigBang bb);
209209

210210
public void layoutConstants() {
211+
DeadlockWatchdog watchdog = ImageSingletons.lookup(DeadlockWatchdog.class);
211212
for (Pair<HostedMethod, CompilationResult> pair : getOrderedCompilations()) {
212213
CompilationResult compilation = pair.getRight();
213214
for (DataSection.Data data : compilation.getDataSection()) {
@@ -225,6 +226,7 @@ public void layoutConstants() {
225226
constantReasons.put(constant, compilation.getName());
226227
}
227228
}
229+
watchdog.recordActivity();
228230
}
229231
dataSection.close(HostedOptionValues.singleton(), 1);
230232
}

0 commit comments

Comments
 (0)