Previously we would allow the expiration time to overflow, which in practice
meant that threadDelay maxBound we return far earlier than circa 2500 CE. For
now we fix this by simply clamping to maxBound.
Fixes Trac #15158.
simonmar | |
hvr |
Previously we would allow the expiration time to overflow, which in practice
meant that threadDelay maxBound we return far earlier than circa 2500 CE. For
now we fix this by simply clamping to maxBound.
Fixes Trac #15158.
Validate, run T8089
Automatic diff as part of commit; lint not applicable. |
Automatic diff as part of commit; unit tests not applicable. |
Is it possible to make a test for this?
libraries/base/GHC/Event/TimerManager.hs | ||
---|---|---|
219 | Does that compile with /? I thought it would need quot |