Overview
| Artifact ID: | 7e42e45f89649207660b7291ad20478bae15e0d6 |
|---|---|
| Ticket: | 450795ffffffffffffffffffffffffffffffffff
implement TclpCheckStackSpace() for unix |
| User & Date: | msofer on 2002-02-26 00:37:30 |
Changes
- assignee changed to: "msofer"
- icomment:
File Added - 18399: stackSpace.patch.gz Logged In: YES user_id=148712 I attach a patch (gzipped) that implements TclpCheckStackSpace. Please test it on different unixen - it runs ok with gcc (egcs-2.91.66, glibc 2.1.3) on linux/intel. Some comments: 1. in order to use, the new function TclpInitCheckStackSpace (tclUnixInit.c) should be called with a stack address as early as possible. In the patch, this is done from Tcl_Main so that the writers of special shells do not have to worry about it. 2. as it is here, the functionality is not available for embedders - the new function is not declared in the stubs tables. If the functionality is deemed necessary, it may be worth considering making it public (or called from some new Tcl_InitializeSystem). That would require TIPping. 3. if TclpInitCheckStackSpace is never called, the behaviour is the same as without the patch: it is always assumed that there is enough stack space to continue. Comments welcome!
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"