Quote: actions performed "at garbage-collection time" may occur any time between the object's last use and program termination; must execute under an unknown state
Topic: memory management by garbage collection
Topic: finalization of data
Quotation Skeleton
Note also that actions performed "at garbage-collection time" … object and "the end of the program." This … again makes such actions hard to program correctly … [This] can be solved by providing a registration … address and a pointer to a "cleanup" function … the registration server is destroyed ("at the end …
Google-1Google-2
Copyright clearance needed for quotation.
Additional Titles
Quote: use a registration server instead of garbage-collection; register an object for cleanup at program termination; remove registration if object is explicitly terminated
Related Topics
Topic: memory management by garbage collection (113 items)
Topic: finalization of data (10 items)