Replies: 2 comments
-
With little to no expertise on the topic & a few minutes of reading the links, my vote goes to Cleaner. |
Beta Was this translation helpful? Give feedback.
0 replies
-
This topic is now mute, as we decided to go for manual resource management |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
finalize
has been deprecated for a long time and marked for removal recently. Some java implementations threaten to stop calling finalize altogether in the future. Our code relies on it and, in truth, since we wrapshared_ptr
, it's actually a good fit for us in spite of all discussions about how using finalizers in Java is bad.What can we do:
Cleaner
. It basically runs a thread in the background which calls callbacks (manually registered by us) when our objects become unreachable.Cleaner
but in this case we control the disposal thread ourselves.Beta Was this translation helpful? Give feedback.
All reactions