Skip to content
Tcl Source Code Artifact [9cc05ab89d]
Login

Artifact [9cc05ab89d]

Artifact 9cc05ab89d41ca47ed5868cfb6d350fc4fe73eb4:

Wiki page [Allocation] by dgp on 2014-08-29 15:29:13.
D 2014-08-29T15:29:13.525
L Allocation
P d1a7ffb4775b742dfa9f1c894b2c157394721337
U dgp
W 1586
<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>
  *  Tcl_GetMemoryInfo
  *  Tcl_ValidateAllMemory
  *  Tcl_DumpActiveMemory
  *  Tcl_DbCkalloc
  *  Tcl_AttemptDbCkalloc
  *  Tcl_DbCkfree
  *  Tcl_DbCkrealloc
  *  Tcl_AttemptDbCkrealloc
  *  Tcl_Alloc
  *  Tcl_AttemptAlloc
  *  Tcl_Free
  *  Tcl_Realloc
  *  Tcl_AttemptRealloc
  *  Tcl_InitMemory


<h1>Private Interface</h1>
  *  TclInitAlloc
  *  TclFinalizeAllocSubsystem
  *  TclFinalizeMemorySubsystem
  *  TclpAlloc
  *  TclpFree
  *  TclpRealloc
  *  TclFreeAllocCache
  *  TclThreadAllocObj
  *  TclThreadFreeObj
  *  TclFinalizeThreadAlloc
  *  TclFinalizeThreadAllocThread
  *  TclpSysAlloc
  *  TclpSysFree
  *  TclpSysRealloc
  *  TclInitDbCkalloc
  *  TclDumpMemoryInfo


<h1>Directly Depends On Public Interface Of</h1>
  *  [Threads]
  *  [Embedding Support]
  *  [Object System and Fundamental Object Types]
  *  [Parsing and Evaluation]
  *  [Pathname Management]
  *  [Conversions From String]
  *  [Filesystem Access]
  *  <i>stdio.h</i>
  *  <i>ctype.h</i>
  *  <i>string.h</i>


<h1>Directly Depends On Private Interface of</h1>
  *  [Threads]

<h1>Discussion</h1>

This module handles dynamic allocation and free of memory.

The largest defect is that <b>Tcl_Alloc</b> takes an <i>unsigned int</i>
argument for the number of bytes to allocate, limiting the allocation size to
4 Gib.


Z fd5231d5fa9b1e4c2fa255193e60958e