Should Java finalizer really be avoided also for native peer objects lifecycle management?
finalize and other approaches that use GC knowledge of objects lifetime have a couple of nuances: visibility: do you guarantee that all the writes methods of object o made are visible to the finalizer (i.e., there is a happens-before relationship between the last action on object o and the code performing finalization)? reachability: how do … Read more