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

Make finalizer a built-in #45423

Merged
merged 3 commits into from
May 24, 2022
Merged

Make finalizer a built-in #45423

merged 3 commits into from
May 24, 2022

Conversation

Keno
Copy link
Member

@Keno Keno commented May 22, 2022

Split out from #45272. This is prepratory work towards adding
optimization passes that recognize this builtin. This PR adds
Core.finalizer with essentially the same interface as
Base.finalizer, but without the error checking or raw-C-pointer
feature. In future commits, the Core.finalizer interface will
likely expand slightly, but Base.finalizer will remain unchanged
and is the supported interface for this functionality.

Split out from #45272. This is prepratory work towards adding
optimization passes that recognize this builtin. This PR adds
`Core.finalizer` with essentially the same interface as
`Base.finalizer`, but without the error checking or raw-C-pointer
feature. In future commits, the Core.finalizer interface will
likely expand slightly, but Base.finalizer will remain unchanged
and is the supported interface for this functionality.
base/docs/basedocs.jl Outdated Show resolved Hide resolved
Co-authored-by: Shuhei Kadowaki <[email protected]>
Copy link
Member

@ianatol ianatol left a comment

Choose a reason for hiding this comment

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

Looks pretty straightforward to me, maybe @chflood would also like to take a look though

base/docs/basedocs.jl Outdated Show resolved Hide resolved
base/gcutils.jl Show resolved Hide resolved
Copy link
Member

@chflood chflood left a comment

Choose a reason for hiding this comment

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

Makes sense to me.

@Keno Keno added the merge me PR is reviewed. Merge when all tests are passing label May 23, 2022
@Keno Keno merged commit 8512dd2 into master May 24, 2022
@Keno Keno deleted the kf/corefinalizer branch May 24, 2022 19:26
@pchintalapudi pchintalapudi removed the merge me PR is reviewed. Merge when all tests are passing label May 29, 2022
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.

5 participants