Skip to content

Commit 291c40e

Browse files
committed
record watchdog activity inside NativeImageCodeCache.layoutConstants
1 parent b188cdd commit 291c40e

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
@@ -207,6 +207,7 @@ public CompilationResult compilationResultFor(HostedMethod method) {
207207
public abstract void layoutMethods(DebugContext debug, BigBang bb);
208208

209209
public void layoutConstants() {
210+
DeadlockWatchdog watchdog = ImageSingletons.lookup(DeadlockWatchdog.class);
210211
for (Pair<HostedMethod, CompilationResult> pair : getOrderedCompilations()) {
211212
CompilationResult compilation = pair.getRight();
212213
for (DataSection.Data data : compilation.getDataSection()) {
@@ -224,6 +225,7 @@ public void layoutConstants() {
224225
constantReasons.put(constant, compilation.getName());
225226
}
226227
}
228+
watchdog.recordActivity();
227229
}
228230
dataSection.close(HostedOptionValues.singleton(), 1);
229231
}

0 commit comments

Comments
 (0)