Overview
| Artifact ID: | 3650ab36bc152d81fe4d884846889f3d52eaf1ac |
|---|---|
| Ticket: | 450795ffffffffffffffffffffffffffffffffff
implement TclpCheckStackSpace() for unix |
| User & Date: | msofer on 2002-02-27 21:50:45 |
Changes
- icomment:
Logged In: YES user_id=148712 Note that this patch implements a "light" TclpCheckStackSpace: it monitors the remaining stack space with respect to the maximum allowed by the OS, but *not* against stack-heap collisions. The win implementation (and presumably the mac too) monitor both. Joe English has proposed a solution for linux/gcc in non-threaded builds that monitors the stack-heap distance "as long as you haven't called mmap()/shmget/whatever (not sure how that affects the memory map)". It is done by setting the condition to monitor to ((&here > tclMinCStackPos) && (&here > sbrk(0) + tclMinCStackSize))
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"