Skip to content

Commit ded4d9b

Browse files
committed
Ensure full watchdog interval is available per method in LIRNativeImageCodeCache.patchMethods
1 parent 5a5cb09 commit ded4d9b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
import com.oracle.svm.core.SubstrateOptions;
4141
import com.oracle.svm.core.config.ConfigurationValues;
4242
import com.oracle.svm.core.util.VMError;
43+
import com.oracle.svm.hosted.DeadlockWatchdog;
4344
import com.oracle.svm.hosted.code.HostedDirectCallTrampolineSupport;
4445
import com.oracle.svm.hosted.code.HostedImageHeapConstantPatch;
4546
import com.oracle.svm.hosted.code.HostedPatcher;
@@ -336,6 +337,10 @@ public void patchMethods(DebugContext debug, RelocatableBuffer relocs, ObjectFil
336337

337338
// in each compilation result...
338339
for (Pair<HostedMethod, CompilationResult> pair : getOrderedCompilations()) {
340+
341+
/* Ensure a full watchdog interval is available per method */
342+
DeadlockWatchdog.singleton().recordActivity();
343+
339344
HostedMethod method = pair.getLeft();
340345
CompilationResult compilation = pair.getRight();
341346

0 commit comments

Comments
 (0)