Skip to content

remove box data from shape tables #1739

New issue

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

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

Already on GitHub? # to your account

Closed
nikomatsakis opened this issue Feb 2, 2012 · 1 comment
Closed

remove box data from shape tables #1739

nikomatsakis opened this issue Feb 2, 2012 · 1 comment
Labels
A-runtime Area: std's runtime and "pre-main" init for handling backtraces, unwinds, stack overflows

Comments

@nikomatsakis
Copy link
Contributor

Currently, the shape table fully describes the contents of all boxes. However, boxes now uniformly carry a type descriptor of their contents. Therefore, we should be able to replace boxes in shape tables with a single byte ("box"), and then load the shape table for the box contents from the box itself. This will be helpful for monomorphization (#1736) as well, because it allows a single version of the function to operate over all box types without derived type descriptors.

@nikomatsakis
Copy link
Contributor Author

Basically fixed in 6e680e3.

celinval pushed a commit to celinval/rust-dev that referenced this issue Jun 4, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
A-runtime Area: std's runtime and "pre-main" init for handling backtraces, unwinds, stack overflows
Projects
None yet
Development

No branches or pull requests

1 participant