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

Use slab for unix OsIpcReceiverSet's tokens #147

Closed
wants to merge 1 commit into from

Conversation

@dlrobertson
Copy link
Collaborator

dlrobertson commented Feb 14, 2017

Use slab as the container for OsIpcReceiverSet's tokens and fds.

Resolves:

Related to:

Use slab as the container for OsIpcReceiverSet's tokens and fds.
Ok(last_index)
if self.pollfds.has_available() {
let len = self.pollfds.len();
self.pollfds.reserve_exact(len << 1);

This comment has been minimized.

@dlrobertson

dlrobertson Feb 14, 2017

Author Collaborator

Not a huge fan of this. Any ideas on how to improve this?

@dlrobertson
Copy link
Collaborator Author

dlrobertson commented Feb 14, 2017

It appears that servo/servo#15537 is still failing, which means my theory that it was a reused file descriptor is wrong.

@antrik
Copy link
Contributor

antrik commented Feb 14, 2017

Indeed, this is not the problem at all -- see my (late) follow-up on #133

@dlrobertson
Copy link
Collaborator Author

dlrobertson commented Feb 15, 2017

Not the actual cause of the problem. Keep pollfds as a HashMap for now.

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

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