Overview
| Artifact ID: | 0e5bb5ec4586f8277d7f85290cdb58e4e2edc58a |
|---|---|
| Ticket: | 1772004fffffffffffffffffffffffffffffffff
objReform |
| User & Date: | msofer on 2007-08-11 23:28:05 |
Changes
- icomment:
File Added - 240847: objReform.diff.1.2 Logged In: YES user_id=148712 Originator: YES Some notes: (a) the alignment issue is likely a non-issue on P4 (128 byte cache line!?). (b) the alignment issue is likely a non-issue on 64 bit with 32b cache lines: a Tcl_Obj takes 3/2 of a cache line, it always requires two lines (assuming initial alignment of the Tcl_Obj block, see below). (c) the original patch did not take care to align the Tcl_Obj block, which is assigned in TclAllocateFreeObjects. If ckalloc returns a cache-aligned pointer, all's well. If not, the patch *insures* that all objs require two cache lines. But ckalloc/malloc does not guarantee alignment on 32 byte boundaries, just 8 (in general, afaiu, usw) Attaching a new (hacky! Proof of concept!) patch that does insure 32 byte alignment. Again, patch is HACKY and only for 32 bit archs (both the size of the text area and the rounding macros need to be MUCH better). File Added: objReform.diff.1.2
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"