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

Adding block metadata facilities into the GC package #17073

Merged
merged 2 commits into from
Nov 18, 2024

Conversation

schveiguy
Copy link
Member

These facilities will be used by GCs to record array metadata and finalizer data into blocks.

These are moved from rt.lifetime, so the GC can take over. In a future PR, the API will move to the GC itself, so a GC could use any mechanism it wishes for these.

See the master plan for the new GC: schveiguy#8

This is split into 2 commits -- one is the copy/paste of the functions as-is (no changes to the code), and the second is a modification of the code so I could combine two separate functions that were nearly identical.

@dlang-bot
Copy link
Contributor

Thanks for your pull request, @schveiguy!

Bugzilla references

Your PR doesn't reference any Bugzilla issue.

If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog.

Testing this PR locally

If you don't have a local development environment setup, you can use Digger to test this PR:

dub run digger -- build "master + dmd#17073"

get the typeinfo to store, and how we get the fact that a finalizer is
present or not.
@thewilsonator
Copy link
Contributor

Thanks for the two commits!

@dlang-bot dlang-bot merged commit 3f2b208 into dlang:master Nov 18, 2024
41 checks passed
@schveiguy schveiguy deleted the addgcblockmeta branch November 19, 2024 03:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants