Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 2b507f6a0ed7663ac8fe6a21cc320c025f43b4b3
Ticket: 3392735fffffffffffffffffffffffffffffffff
Deep [exit] leaks one obj per stack level and local var.
User & Date: dkf on 2011-08-19 19:39:42
Changes

  1. icomment:
    Joe, when there are resources that must be cleaned up on exit, a specific exit handler should be registered to deal with them; there's a separate API for that. That API should not be (ab)used for doing memory cleanup though. (I differentiate with finalizing an interpreter; in that case there's a reasonable need to try to cleanse memory thoroughly. But it's not [exit].)
    
    Alex, that's why it is important to say what you mean and not a proxy for it. The [exit] command should not be doing memory cleanup because of the issues I raised (other critical cleanup is the proper domain of an exit handler) but that doesn't mean that there is no need for testing finalization. (Suggestion: try ripping the rug out from under a sub-interp's feet using the master interpreter.)
    
    
  2. login: "dkf"
  3. mimetype: "text/plain"
  4. username: "dkf"