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 alignment to store Gc's rooted flag #40

Merged
merged 1 commit into from
Aug 27, 2016
Merged

Use alignment to store Gc's rooted flag #40

merged 1 commit into from
Aug 27, 2016

Conversation

apasel422
Copy link
Contributor

Supplants #17

// XXX We can probably take advantage of alignment to store this
root: Cell<bool>,
ptr: Shared<GcBox<T>>,
ptr_root: Cell<NonZero<*const GcBox<T>>>,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should make sure to also have the PhantomData here that used to be in Shared

@mystor
Copy link
Collaborator

mystor commented Aug 27, 2016

I left a few in line comments. I'm very happy that we can have the efficient flag storage and coerce unsized now at the same time!

Thanks for the patch :)

@apasel422
Copy link
Contributor Author

Updated.

@mystor mystor merged commit 2937b70 into Manishearth:master Aug 27, 2016
@mystor
Copy link
Collaborator

mystor commented Aug 27, 2016

LGTM, Thanks for the patch

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.

2 participants