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

RFC: add finalize function #9255

Merged
merged 2 commits into from
Dec 6, 2014
Merged

RFC: add finalize function #9255

merged 2 commits into from
Dec 6, 2014

Conversation

JeffBezanson
Copy link
Member

Should be self-explanatory.

@timholy
Copy link
Member

timholy commented Dec 5, 2014

Really nice!

@quinnj
Copy link
Member

quinnj commented Dec 5, 2014

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);
Copy link
Contributor

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. 👍

@JeffBezanson
Copy link
Member Author

Ok, not seeing a whole lot of push-back here :)

JeffBezanson added a commit that referenced this pull request Dec 6, 2014
@JeffBezanson JeffBezanson merged commit 56fe4d5 into master Dec 6, 2014
@Sean1708
Copy link
Contributor

Sean1708 commented Dec 7, 2014

@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.

@tkelman tkelman mentioned this pull request Dec 11, 2014
@jiahao jiahao deleted the jb/finalize branch January 18, 2015 07:24
@quinnj
Copy link
Member

quinnj commented Jun 3, 2015

Is there any kind of Compat ability here?

@timholy
Copy link
Member

timholy commented Jun 3, 2015

Only as a no-op, I think.

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.

6 participants