Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 517c7216951ebdf1a0f31519cdea24db154ce97d
Ticket: 582256ffffffffffffffffffffffffffffffffff
Releasing Tcl_Obj Allocator
User & Date: dkf on 2006-01-07 16:15:08
Changes

  1. icomment:
    Logged In: YES 
    user_id=79902
    
    This code pre-dates Win64 :-) so adapting it to use suitable
    integer types is perfectly OK with me. The main thing is
    that there needs to be a way to mask off the lower bits to
    get the address of the start of the page containing the
    Tcl_Obj so that the book-keeping structure can be located.
    
    The cost of closing and reopening any file descriptor has
    got to be appreciable because it requires two context
    switches (plus string parsing to convert the filename into a
    directory entry, etc.) Some Unix platforms instead do page
    allocation through mmap()ing a specific invalid handle. Note
    that the cost of the memset is almost beside the point (it's
    the update to the page table we really want!) and there's no
    guarantee that that's what a map of /dev/zero would be
    doing; taking advantage of the bus width to write more at
    once would be practical in an OS kernel.
    
    In any case, as I wrote, this code is only known to work on
    Solaris 8, which is pretty old nowadays. If you want to
    update it to work with newer systems (and a newer Tcl too,
    including the threaded Tcl_Obj allocator) then be my guest.
    
    
  2. login: "dkf"
  3. mimetype: "text/plain"
  4. username: "dkf"