[corlib] Handle overflow correctly in Timer to avoid spinning. Fixes #8782
authorRodrigo Kumpera <kumpera@gmail.com>
Wed, 9 Jan 2013 21:27:00 +0000 (16:27 -0500)
committerRodrigo Kumpera <kumpera@gmail.com>
Wed, 9 Jan 2013 21:30:38 +0000 (16:30 -0500)
commitf197c5c9cd19109eebfab297352a432eadc1d582
treefe23b8d37985eb4f160dfc3aea6b12e43961b905
parent50e8cc4c2553d62a20f922345ebfd8a3a2cbfd6e
[corlib] Handle overflow correctly in Timer to avoid spinning. Fixes #8782

* Timer.cs: Very long timers can lead to timeout values that are
bigger than Int32.MaxValue, leading to a negative value and us
spinning.
mcs/class/corlib/System.Threading/Timer.cs