Overview
| Artifact ID: | dab00deda9c611a7fc6ab9229076c5c3ceddc78a |
|---|---|
| Ticket: | 1851832fffffffffffffffffffffffffffffffff
badly aligned mem allocations? |
| User & Date: | msofer on 2007-12-16 12:53:10 |
Changes
- assignee changed to: "hobbs"
- cmimetype changed to: "text/plain"
- 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)
- foundin changed to: "obsolete: 8.5b3"
- is_private changed to: "0"
- priority changed to: "9 Immediate"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "msofer"
- subsystem changed to: "41. Memory Allocation"
- title changed to: "badly aligned mem allocations?"
- type changed to: "Bug"