From: monojenkins Date: Mon, 29 Feb 2016 22:35:35 +0000 (+0000) Subject: Merge pull request #2694 from ludovic-henry/fix-sleep-overflow X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=commitdiff_plain;h=4c4af589f3dfbed0ef1eff23691e69b886ecfd4e;p=mono.git Merge pull request #2694 from ludovic-henry/fix-sleep-overflow [threads] Fix mono_thread_info_sleep overflow This overflow would happen of the machine was up for more than 29 days, leading to an overflow in the value returned by mono_100ms_ticks. The simplest solution is simply to resort to mono_100ns_ticks which would only overflow after more than 29247 years. So even the platform implement this value as the time since 0000-00-00 00:00:00, we still have more than 27000 years if front of us. It's also highly unlikely that we would overflow the `end' value when adding `ms', as that would mean we are in the last 29 days of that 29247 years. @monojenkins merge --- 4c4af589f3dfbed0ef1eff23691e69b886ecfd4e