Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove the assertions during panics #14

Merged
merged 1 commit into from Nov 30, 2015

Conversation

@larsbergstrom
Copy link
Contributor

larsbergstrom commented Nov 20, 2015

r? @pcwalton

We have a bunch of intermittent failures in Servo and the problem is that if one thread (say script) panics, then as all of the threads with ipc-channel usage are torn down, their drop methods attempt to reclaim native resources that are not in a sensible state. These chain panics flood the output with ipc-channel failures and often hide the original failure.

Only asserting if we are not panicking was OK'd by @alexcrichton.

I also got rid of a few >= for ==, since close is only supposed to return 0 for success, as far as I could tell.

Review on Reviewable

@larsbergstrom
Copy link
Contributor Author

larsbergstrom commented Nov 20, 2015

BTW, I confirmed that Linux WPT & ref tests still pass with these changes.

pcwalton added a commit that referenced this pull request Nov 30, 2015
Remove the assertions during panics
@pcwalton pcwalton merged commit 5b997af into servo:master Nov 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.