Skip to content

Made overflow far less likely on Windows.#4

Merged
tomaka merged 1 commit into
tomaka:masterfrom
ebfull:master
Mar 5, 2015
Merged

Made overflow far less likely on Windows.#4
tomaka merged 1 commit into
tomaka:masterfrom
ebfull:master

Conversation

@ebfull

@ebfull ebfull commented Mar 5, 2015

Copy link
Copy Markdown
Contributor

This shouldn't have been wrapping in the first place, as doing the operations in the other order makes this far less likely to happen. Downstream users like event_loop need this not to wrap over time; if it does it will cause serious bugs, so a panic would be much preferred for now.

I tested this and the overflows don't happen anymore, and on Windows my event loop stopped freezing. (It was wrapping every ~30 minutes, crashing my app.)

tomaka added a commit that referenced this pull request Mar 5, 2015
Made overflow far less likely on Windows.
@tomaka tomaka merged commit d2727ab into tomaka:master Mar 5, 2015
@huonw

huonw commented Mar 5, 2015

Copy link
Copy Markdown

You may also be interested in the fix applied to the standard library: rust-lang/rust#22788

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants