summaryrefslogtreecommitdiffstats
path: root/generic/tclThreadAlloc.c
Commit message (Collapse)AuthorAgeFilesLines
* merge trunkjan.nijtmans2017-01-161-10/+35
|\
| * Introduce new function TclInitThreadAlloc(), symmetric with ↵notifierjan.nijtmans2017-01-131-11/+35
| |\ | | | | | | | | | TclFinalizeThreadAlloc()
| * | Patch from Zoran Vasiljevic, fix for missing proper initialization of the ↵jan.nijtmans2017-01-131-0/+1
| |/ | | | | | | threaded allocator in some situations.
* | More internal use of size_t. Eliminate unused "isBin" argument from ↵jan.nijtmans2016-12-011-4/+4
| | | | | | | | TclpSysAlloc()
* | merge trunkjan.nijtmans2016-10-111-3/+3
|\ \ | |/
| * Fix [3cc1d91345]: duplicate calls to TclpFreeAllocCache() on thread existsjan.nijtmans2016-10-111-3/+3
| |\
* | \ merge trunkjan.nijtmans2015-09-291-1/+1
|\ \ \ | |/ /
| * | Align comment. Remove some end-of-line spacing. No functional changes.jan.nijtmans2015-09-281-1/+1
| |\ \ | | |/
* | | merge trunkjan.nijtmans2015-04-291-21/+98
|\ \ \ | |/ /
| * | Reduce the list walking by keeping lastPtr fields.zippy_fifodgp2015-04-161-28/+35
| | |
| * | Revise the zippy dance that pushes Blocks and Tcl_Objs back the shared pooldgp2015-04-151-15/+85
| | | | | | | | | | | | | | | | | | so that the overal operation remains a FIFO. This help preserve cache locality where it exists. The price (for now) is a bit more time walking to the end of free lists. If this is important, the addition of a lastPtr field could fix it without difficulty.
* | | merge trunkjan.nijtmans2014-09-171-1/+2
|\ \ \ | |/ /
| * | [132fad6fde]. Fixed GetCache to use TclpSysAlloc+memset insteadashok2014-09-031-1/+2
| | | | | | | | | | | | of calloc. Now consistent with tclWinThrd.c which no longer uses malloc in its TclpSysAlloc implementation.
* | | merge trunkjan.nijtmans2014-09-011-8/+8
|\ \ \ | |/ /
| * | Use TclpSys* macros, not direct system calls.dgp2014-08-291-8/+8
| | |
* | | merge trunkjan.nijtmans2014-05-011-0/+27
|\ \ \ | |/ /
| * | [3493120] Plug memory leak in thread exit.dgp2014-04-241-0/+27
| |\ \ | | |/
| | * Memory leak after thread exit, fixed (alloc cache released by exit), belong ↵sebres2014-04-221-0/+27
| | | | | | | | | | | | | | | | | | | | | | | | to ticket [3493120] Moved over to branch bug-3493120. This is not ready for the core-8-5-branch. Segfaults all over the place in a thread-enabled build on a CentOS system.
* | | merge trunkjan.nijtmans2013-02-031-6/+6
|\ \ \ | |/ /
| * | merge core-8-5-branchjan.nijtmans2013-01-311-6/+6
| |\ \ | | |/
| | * Use twoPtrValue.ptr1 in stead of otherValuePtr everywhere. This is exactly ↵jan.nijtmans2013-01-311-6/+6
| | | | | | | | | | | | the same field, but it allows twoPtrValue.ptr2 to be used for other purposes.
| | * silence more warningsdgp2011-11-011-0/+4
| | |
* | | remove unnecessary struct names, which only pollute the "struct" namespace ↵jan.nijtmans2012-08-201-1/+1
|/ / | | | | | | for te compiler.
* | Reduce amount of unreachable code. Refactor Win socket and load code to be lessdkf2012-04-051-8/+0
| | | | | | baroque in its internals.
* | TclClockOldscanObjCmd: More generation of errorCode information.dkf2011-03-311-0/+0
| |
* | Restored C++ usability to the memory allocation and free macros.dgp2011-03-241-0/+0
| |
* | Ensure that any reference to temporary index tables is squelched immediatelydkf2011-03-241-0/+0
|\ \ | |/ | | rather than hanging around to trip us up in the future.
* | simpler initialization of Cache under HAVE_FAST_TSD, from mig-alloc-reform.mig2011-03-221-4/+2
| |
* | * generic/tclThreadAlloc.c: imported HAVE_FAST_TSD support from ↵mig2011-03-201-20/+29
| | | | | | | | mig-alloc-reform. The feature has to be enabled by hand: no autoconf support has been added. It is not clear how universal a build using this will be: it also requires some loader support.
* | Now that we're no longer using SCM based on RCS, the RCS Keyword linesdgp2011-03-021-2/+0
|\ \ | |/ | | cause more harm than good. Purged them (except in zlib files).
| * Now that we're no longer using SCM based on RCS, the RCS Keyword lines causedgp2011-03-021-2/+0
| |\ | | | | | | more harm than good. Purged them.
| | * Now that we're no longer using SCM based on RCS, the RCS Keyword lines causedgp2011-03-011-2/+0
| | | | | | | | | more harm than good. Purged them.
| | * fix typosdas2009-10-051-3/+3
| | |
| | * * generic/tclAlloc.c: Cleaned up various routines in thedgp2009-09-281-3/+27
| | | | | | | | | | | | | | | | | | | | | * generic/tclCkalloc.c: call stacks for memory allocation to * generic/tclParse.c: guarantee that any size values computed * generic/tclThreadAlloc.c: are within the domains of the routines they get passed to. [Bugs 2557696 and 2557796].
| | * * generic/tclAlloc.c: on Darwin, ensure memory allocated bydas2007-06-291-37/+44
| | | | | | | | | | | | | | | * generic/tclThreadAlloc.c: the custom TclpAlloc()s is aligned to 16 byte boundaries (as is the case with the Darwin system malloc).
| | * Use %ld instead of %d in Tcl_GetMemoryInfodkf2005-12-201-9/+9
| | |
| | * Modified TclFinalizeThreadAlloc() to explicitly callvasiljevic2005-04-071-1/+3
| | | | | | | | | | | | | | | | | | TclpFreeAllocCache with the NULL-ptr as argument signalling cleanup of private tsd key used only by the threading allocator. Part of fixing the Tcl Bug #1178445.
| | * * generic/tclAlloc.c: Fixed [Tcl SF Bug 1030548], aandreas_kupries2004-10-281-2/+2
| | | | | | | | | | | | | | | | | | | | | * generic/tclThreadAlloc.c: threaded debug build on Windows * win/tclWinThrd.c: now works again. Had to touch Unix * unix/tclUnixThrd.c: as well. Basic patch by Kevin, with modifications by myself.
| | * * generic/tclThreadAlloc.c: Moved the tclInt.h include to providepatthoyts2004-07-251-4/+4
| | | | | | | | | | | | Tcl_Panic which is now required for non-threaded build.
| | * * generic/tclEvent.c: Correct threaded obj allocator tohobbs2004-07-211-1/+59
| | | | | | | | | | | | | | | | | | | | | * generic/tclInt.h: fully cleanup on exit and allow for * generic/tclThreadAlloc.c: reinitialization. [Bug #736426] * unix/tclUnixThrd.c: (mistachkin, kenny) * win/tclWinThrd.c:
| | * fix bad cvs lf conversionJoe Mistachkin2003-05-101-1/+2
| | |
| | * fix for [Bug 731754]Joe Mistachkin2003-05-101-5/+1
| | |
| * | * generic/tclAlloc.c: Cleaned up various routines in thedgp2009-09-291-3/+27
| | | | | | | | | | | | | | | | | | | | | * generic/tclCkalloc.c: call stacks for memory allocation to * generic/tclInt.h: guarantee that any size values computed * generic/tclThreadAlloc.c: are within the domains of the routines they get passed to. [Bugs 2557696 and 2557796].
* | | Code Audit results:dkf2010-03-051-15/+15
| | | | | | | | | | | | | | | | | | | | | | | | * use do { ... } while (0) in macros * avoid shadowing one local variable with another * use clearer 'foo.bar++;' instead of '++foo.bar;' where result not required (i.e., semantically equivalent) * follow Engineering Manual rules on spacing and declarations
* | | fix warning on LP64das2009-11-261-1/+5
| | |
* | | * generic/tclAlloc.c: Cleaned up various routines in thedgp2009-09-291-3/+27
| | | | | | | | | | | | | | | | | | | | | * generic/tclCkalloc.c: call stacks for memory allocation to * generic/tclInt.h: guarantee that any size values computed * generic/tclThreadAlloc.c: are within the domains of the routines they get passed to. [Bugs 2557696 and 2557796].
* | | Style fixes (unfouling whitespace, sorting comments, removing useless casts, ↵dkf2009-01-091-7/+7
| | | | | | | | | | | | etc.)
* | | * generic/tclBasic.c: Made use of the thread's alloc cacheMiguel Sofer2008-07-291-3/+15
|/ / | | | | | | | | | | | | | | | | * generic/tclInt.h: stored in the ekeko at interp creation * generic/tclNRE.h: to avoid hitting the TSD each time an * generic/tclThreadAlloc.c: NRE callback is pushed or pulled; the approach is suitably general to extend to evry other obj allocation where an interp is know; this is left for some other time, requires a lot of grunt work.
* | Final clean up of the Tcl_GetMemoryInfo mess.dkf2008-03-201-3/+26
| |
* | Corrected scoping of Tcl_GetMemoryInfo. [Bug 1868171]dkf2008-03-191-2/+2
| |