Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 3650ab36bc152d81fe4d884846889f3d52eaf1ac
Ticket: 450795ffffffffffffffffffffffffffffffffff
implement TclpCheckStackSpace() for unix
User & Date: msofer on 2002-02-27 21:50:45
Changes

  1. 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))
    
    
    
  2. login: "msofer"
  3. mimetype: "text/plain"
  4. username: "msofer"