Skip to content

Conversation

@jpsamaroo
Copy link
Member

This will allow us to skip setting the sticky bit of a parent task that calls @async in a finalizer, along with also allowing resource cleanup finalizers to use a finalizer-compatible implementation only when necessary.

@jpsamaroo jpsamaroo added the multithreading Base.Threads and related functionality label Mar 2, 2023
@jpsamaroo
Copy link
Member Author

The latest push fails on the added test, which I can reproduce in the REPL; @vtjnash any idea why this isn't working?

@simeonschaub
Copy link
Member

Is it to be expected that finalizer inlining may change the result of this function? If so, I think it would be good to at least document that fact

@jpsamaroo
Copy link
Member Author

@simeonschaub let me know what you think of the added docstring.

@jpsamaroo jpsamaroo marked this pull request as ready for review March 6, 2023 18:33
@simeonschaub
Copy link
Member

Looks great to me!

@jpsamaroo jpsamaroo changed the title Add Base.in_finalizer query Add GC.in_finalizer query Mar 6, 2023
@jpsamaroo jpsamaroo force-pushed the jps/in-finalizer-no-sticky branch from 4ddf630 to c811cf5 Compare March 8, 2023 17:56
@jpsamaroo
Copy link
Member Author

Latest push just squashes and rebases on master.

@jpsamaroo jpsamaroo requested a review from vtjnash March 8, 2023 17:58
@vtjnash vtjnash added the merge me PR is reviewed. Merge when all tests are passing label Mar 8, 2023
@staticfloat staticfloat merged commit 407dbdb into JuliaLang:master Mar 10, 2023
@giordano giordano removed the merge me PR is reviewed. Merge when all tests are passing label Mar 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

multithreading Base.Threads and related functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants