1
2
3
4
5
6
7
8
9
10
11
12
13
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
+
+
+
+
+
|
<h1>Source Files</h1>
* [/finfo?name=generic/tclAlloc.c|tclAlloc.c]
* [/finfo?name=generic/tclCkalloc.c|tclCkalloc.c]
* [/finfo?name=generic/tclThreadAlloc.c|tclThreadAlloc.c]
<h1>Public Interface</h1>
* ckalloc
* attemptckalloc
* ckfree
* ckrealloc
* attemptckrealloc
* Tcl_Alloc
* Tcl_AttemptAlloc
* Tcl_Free
* Tcl_Realloc
* Tcl_AttemptRealloc
* Tcl_DbCkalloc
* Tcl_AttemptDbCkalloc
|
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
|
+
+
+
+
+
|
get in <b>Tcl_Alloc</b> is controlled by a set of compiler directives
at the time the <b>Tcl_Alloc</b> is compiled. This leads to a significant
problem that not all configurations are mutually compatible. This means
it's not all that hard to get into a situation where extensions and applications
are functionally incompatible because they've been compiled with different
directives. This is often described as "memdebug extensions only work in
memdebug interps", but the problem may well be more far-reaching than that.
It's a bit of an inelegance that the forms of the routines that support
re-configuration into memory debugging forms are the <b>*ck*</b>
so that code using the Tcl library is encouraged to call <b>ckalloc</b>
rather than <b>Tcl_Alloc</b>.
Some branches exploring reforms in this module include
* [/timeline?r=mig-alloc-reform|mig-alloc-reform]
* [/timeline?r=mig-strip-brutal|mig-strip-brutal]
* [/timeline?r=nonmonotonic-obj-alloc|nonmonotonic-obj-alloc]
* [/timeline?r=novem-more-memory-API|novem-more-memory-API]
* [/timeline?r=novem-64bit-sizes|novem-64bit-sizes]
|