Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Fix issue 17563 - Expose gc_inFinalizer #2873

Merged

Conversation

PetarKirov
Copy link
Member

See the changelog entry and source code comments for details.

@PetarKirov PetarKirov added the GC garbage collector label Dec 16, 2019
@dlang-bot
Copy link
Contributor

Thanks for your pull request, @PetarKirov!

Bugzilla references

Auto-close Bugzilla Severity Description
17563 enhancement gc_inFinalizer should be public

Testing this PR locally

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

dub fetch digger
dub run digger -- build "master + druntime#2873"

@dlang-bot dlang-bot added the Enhancement New functionality label Dec 16, 2019
@PetarKirov PetarKirov force-pushed the fix-issue-17563-add-gc-in-finalizer branch 2 times, most recently from b15ff11 to 7aef8b8 Compare December 16, 2019 23:24
Copy link
Member

@schveiguy schveiguy left a comment

Choose a reason for hiding this comment

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

Probably OK other than the attributes.

Thanks!

src/core/memory.d Outdated Show resolved Hide resolved
changelog/gc_in_finalizer.dd Outdated Show resolved Hide resolved
src/core/memory.d Show resolved Hide resolved
src/core/memory.d Outdated Show resolved Hide resolved
src/core/memory.d Outdated Show resolved Hide resolved
@PetarKirov PetarKirov force-pushed the fix-issue-17563-add-gc-in-finalizer branch 2 times, most recently from da1a9b1 to ec3845a Compare December 17, 2019 08:25
@PetarKirov
Copy link
Member Author

PetarKirov commented Dec 17, 2019

src/gc/proxy.d Outdated Show resolved Hide resolved
@PetarKirov PetarKirov force-pushed the fix-issue-17563-add-gc-in-finalizer branch from ec3845a to 95f7df9 Compare December 17, 2019 08:31
@PetarKirov
Copy link
Member Author

PetarKirov commented Dec 17, 2019

@CyberShadow is there any way to restart DAutoTest without restarting all of the other CIs? Like a restart button that only people in the GitHub org can click?

@CyberShadow
Copy link
Member

Unfortunately such a feature does not exist at the moment.

…function

Motivation: we want the @safe-ty of the proxy functions to based on the
@safe-ty of the underlying functions of the GC interface. This is not
currently possible as all access to this interface goes through a
`__gshared GC instance` variable.

Trusted functions are usually a bad idea, but this one is private, in a
module not meant to be imported by user code, so the author believes
that it's a better solution than sprinkling @trusted lambdas all over
the module.
See the changelog entry and source code comments for details.
@PetarKirov PetarKirov force-pushed the fix-issue-17563-add-gc-in-finalizer branch from 95f7df9 to 63d86ee Compare December 19, 2019 13:35
@PetarKirov PetarKirov merged commit e6b89f6 into dlang:master Dec 19, 2019
@PetarKirov PetarKirov deleted the fix-issue-17563-add-gc-in-finalizer branch December 19, 2019 19:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Enhancement New functionality GC garbage collector
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants