-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
RFC: add finalize
function
#9255
Conversation
Really nice! |
Ah, this is nice. @Sean1708, looks like this is our solution to this line of code. |
assert(ff != HT_NOTFOUND); | ||
ptrhash_remove(&finalizer_table, o); | ||
run_finalizer((jl_value_t*)o, ff); | ||
int ok = finalize_object(o); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
needs explicit cast for msvc / compiling in C++ mode
int ok = finalize_object((jl_value_t*) o);
otherwise, do want. 👍
Ok, not seeing a whole lot of push-back here :) |
RFC: add `finalize` function
@quinnj I'm not sure. Unless I've misunderstood something, this calls any finalizers assigned to a particular object which isn't quite what we need. |
Is there any kind of |
Only as a no-op, I think. |
Should be self-explanatory.