Overview
| Artifact ID: | a1bd3d0aac3ab163ffdb81703d4e4730d80d8275 |
|---|---|
| Ticket: | 999084ffffffffffffffffffffffffffffffffff
re-entrant Tcl_Finalize() |
| User & Date: | dgp on 2004-07-28 00:05:09 |
Changes
- assignee changed to: "hobbs"
- cmimetype changed to: "text/plain"
- comment changed to:
This patch moves the ExitHandler calls of Tcl_Finalize() outside of the TclpInitLock-ed region. This will avoid deadlocks like the one seen in Tk Bug 714956, when the execution of a registered ExitHandler causes another, nested, call to Tcl_Finalize(). This patch should be safe, because the exitHandler loop is careful to always pull the next handler to run from the beginning of the loop, and discard each as it is run, terminating only when the list is empty. The rest of Tcl_Finalize(), protected by a TclpInitLock region, should, we hope, be prevented from making a nested call back into Tcl_Finalize(). Please review.
- foundin changed to: "None"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "dgp"
- subsystem changed to: "02. Event Loops"
- title changed to: "re-entrant Tcl_Finalize()"
- type changed to: "Patch"