Commit 109ebb3
Fixes issue #123950 where Task.Delay freezes when system time jumps
backwards on .NET 10 Linux - a regression from .NET 8 and 9.
The root cause was a missing `#cmakedefine01 HAVE_CLOCK_MONOTONIC`
directive in `src/coreclr/pal/src/config.h.in`. While CMake was
successfully detecting monotonic clock support, the configuration value
was never propagated to the generated config.h header. This caused the
runtime to fall back to wall-clock time (CLOCK_REALTIME) instead of
monotonic clocks (CLOCK_MONOTONIC), making timing operations vulnerable
to system time adjustments.
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: jkotas <6668460+jkotas@users.noreply.github.com>
1 parent 1c69782 commit 109ebb3
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| 90 | + | |
90 | 91 | | |
91 | 92 | | |
92 | 93 | | |
| |||
0 commit comments