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

Embed CacheRegion value into a TagNonNull pointer #84

Merged
merged 3 commits into from
Feb 3, 2022

Conversation

tatsuya6502
Copy link
Member

@tatsuya6502 tatsuya6502 commented Feb 3, 2022

  • Raise the minimum supported Rust version (MSRV) to 1.51.0.
  • Add tagptr crate to the dependencies.
  • Remove region: CacheRegion field from DeqNode.
  • Change the pointer type used in access_order_q_node field of DeqNodes from NonNull<DeqNode<T>> to TagNonNull<DeqNome<T>, 2>, and embed CacheRegion value into the 2-bit tag space of the pointer.
  • Update the methods in Deques to handle the TagNonNull pointers.

Relates to #72.

- Add tagptr crate to the dependencies.
- Remove `region: CacheRegion` field from `DeqNode`.
- Change the pointer type used in `access_order_q_node` field of `DeqNodes`
  from `NonNull<DeqNode<T>>` to `TagNonNull<DeqNome<T>, 2>`, and embed
  `CacheRegion` value into the 2-bit tag space in the `TagNonNull` pointer.
- Update the methods in `Deques` to handle the `TagNonNull` pointers.
tagptr 0.2.0 requires const generics.
@tatsuya6502 tatsuya6502 self-assigned this Feb 3, 2022
@tatsuya6502 tatsuya6502 added the enhancement New feature or request label Feb 3, 2022
@tatsuya6502 tatsuya6502 added this to the v0.7.2 milestone Feb 3, 2022
Copy link
Member Author

@tatsuya6502 tatsuya6502 left a comment

Choose a reason for hiding this comment

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

Merging.

@tatsuya6502 tatsuya6502 merged commit e54d991 into master Feb 3, 2022
@tatsuya6502 tatsuya6502 deleted the remove-deq-region branch February 3, 2022 10:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant