Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: dab00deda9c611a7fc6ab9229076c5c3ceddc78a
Ticket: 1851832fffffffffffffffffffffffffffffffff
badly aligned mem allocations?
User & Date: msofer on 2007-12-16 12:53:10
Changes

  1. assignee changed to: "hobbs"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    While investigating [Bug 1851524] I noticed that Tcl's memory allocators may not be doing the right thing wrt alignment of the allocated memory:
    
    - TclStackAlloc returns a pointer to a memory address that is aligned to a multiple of sizeof(void *): 4-byte alignment on 32b platforms, 8-byte on 64b
    
    - Tcl_Alloc returns 16-aligned memory on apple, 8-aligned otherwise (ALLOCALIGN macros defined both in tclAlloc.c and tclThreadAlloc.c)
    
    - other platforms than apple (especially 64b) require 16-byte alignment (see eg http://msdn2.microsoft.com/en-us/library/ycsb6wwf(VS.80).aspx)
    
  4. foundin changed to: "obsolete: 8.5b3"
  5. is_private changed to: "0"
  6. priority changed to: "9 Immediate"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "msofer"
  10. subsystem changed to: "41. Memory Allocation"
  11. title changed to: "badly aligned mem allocations?"
  12. type changed to: "Bug"