summaryrefslogtreecommitdiffstats
path: root/generic/tclThreadAlloc.c
Commit message (Collapse)AuthorAgeFilesLines
* Align comment. Remove some end-of-line spacing. No functional changes.jan.nijtmans2015-09-281-1/+1
|\
* | Reduce the list walking by keeping lastPtr fields.dgp2015-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.
* | [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.
* | Use TclpSys* macros, not direct system calls.dgp2014-08-291-8/+8
| |
* | [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 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
| |
* | 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
| |
* | * generic/tclAlloc.c:Miguel Sofer2007-12-171-13/+3
| | | | | | | | | | | | | | | | * generic/tclExecute.c: * generic/tclInt.h: * generic/tclThreadAlloc.c: Fix alignment for memory returned by TclStackAlloc; insure that all memory allocators align to 16-byte boundaries on 64 bit platforms [Bug 1851832, 1851524]
* | merge stable branch onto HEADdgp2007-12-131-1/+1
| |
* | Avoid using 'new' as an identifier.dkf2007-11-181-6/+6
| |
* | * generic/tclAlloc.c: on Darwin, ensure memory allocated bydas2007-06-291-47/+55
| | | | | | | | | | * generic/tclThreadAlloc.c: the custom TclpAlloc()s is aligned to 16 byte boundaries (as is the case with the Darwin system malloc).
* | Various minor object file size efficiency fixes. [Bug 1530474]dkf2006-08-101-4/+4
| |
* | Use %ld instead of %d in Tcl_GetMemoryInfodkf2005-12-201-9/+9
| |
* | * unix/tcl.m4 (Darwin): add 64bit support, check for Tiger copyfile(),das2005-11-271-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | add CFLAGS to SHLIB_LD to support passing -isysroot in env(CFLAGS) to configure (flag can't be present twice, so can't be in both CFLAGS and LDFLAGS during configure), don't use -prebind when deploying on 10.4, define TCL_IO_TRACK_OS_FOR_DRIVER_WITH_BAD_BLOCKING (rdar://3171542). (SC_ENABLE_LANGINFO, SC_TIME_HANDLER): add/fix caching, fix obsolete autoconf macros. Sync with tk/unix/tcl.m4. * unix/configure.in: fix obsolete autoconf macros, sync gratuitous formatting/ordering differences with tk/unix/configure.in. * unix/Makefile.in: add CFLAGS to tclsh/tcltest link to make executable linking the same as during configure (needed to avoid loosing any linker relevant flags in CFLAGS, in particular flags that can't be in LDFLAGS). Avoid concurrent linking of tclsh and compiling of tclTestInit.o or xtTestInit.o during parallel make. (checkstubs, checkdoc, checkexports): dependency and Darwin fixes (dist): add new macosx files. * unix/tclLoadDyld.c (TclpDlopen): use NSADDIMAGE_OPTION_WITH_SEARCHING on second NSAddImage only. [Bug 1204237] (TclGuessPackageName): should not be MODULE_SCOPE. (TclpLoadMemory): ppc64 and endian (i386) fixes, add support for loading universal (fat) bundles from memory. * unix/tclUnixFCmd.c: * macosx/tclMacOSXFCmd.c: ppc64 and endian (i386) fixes. (TclMacOSXCopyFileAttributes): add support for new Tiger copyfile() API to enable copying of xattrs & ACLs by [file copy]. * generic/tcl.h: add Darwin specifc configure overrides for TCL_WIDE defines to support fat compiles of ppc and ppc64 at the same time, (replaces Darwin CVS fix by emoy, rdar://3693001). add/correct location of version numbers in macosx files. * generic/tclInt.h: clarify fat compile comment. * unix/tclUnixPort.h: add Darwin specifc configure overrides to support fat compiles, where configure runs only once for multiple architectures (replaces Darwin CVS fix by emoy, rdar://3693001). * macosx/tclMacOSXBundle.c: * macosx/tclMacOSXNotify.c: * unix/tclUnixNotfy.c: * unix/tclUnixPort.h: fix #include order to support compile time override of HAVE_COREFOUNDATION in tclUnixPort.h when building for ppc64 * macosx/Tcl.pbproj/default.pbxuser (new file): * macosx/Tcl.pbproj/jingham.pbxuser: * macosx/Tcl.pbproj/project.pbxproj: * macosx/Tcl.xcode/default.pbxuser (new file): * macosx/Tcl.xcode/project.pbxproj (new file): * macosx/Tcl.xcodeproj/default.pbxuser (new file): * macosx/Tcl.xcodeproj/project.pbxproj (new file): new/updated projects for Xcode 2.2 on 10.4, Xcode 1.5 on 10.3 & ProjectBuilder on 10.2, with native tcltest targets and support for universal (fat) compiles. * macosx/README: clarification/cleanup, document new Xcode projects and universal (fat) builds via CFLAGS (i.e. all of ppc ppc64 i386 at once). * unix/Makefile.in: * unix/aclocal.m4: * unix/configure.in: * unix/dltest/Makefile.in: * macosx/configure.ac (new file): add support for inclusion of unix/configure.in by macosx/configure.ac, allows generation of a config headers enabled configure script in macosx (required by Xcode projects). * macosx/GNUmakefile: rename from Makefile to avoid overwriting by configure run in tcl/macosx, add support for reusing configure cache, build target fixes, remove GENERIC_FLAGS override now handled by tcl.m4. * generic/tcl.decls: add Tcl_Main declaration as comment to avoid 'checkstubs' target complaining about it missing from stubs. * generic/regex.h: * generic/tclDate.c: * generic/tclEnv.c: * generic/tclGetDate.y: * generic/tclIOUtil.c: * generic/tclObj.c: * generic/tclStubInit.c: * generic/tclStubLib.c: * generic/tclPathObj.c: * generic/tclThreadAlloc.c: * generic/tclThreadStorage.c: * generic/tclTrace.c: * generic/tclVar.c: * generic/tommath.h: * tools/fix_tommath_h.tcl: * unix/tclUnixFCmd.c: ensure externally visible symbols not contained in stubs table are declared as MODULE_SCOPE (or as static if not used outside of own source file). These changes allow 'make checkstubs' to complete without error on Darwin with gcc 4. * generic/rege_dfa.c (getvacant): * generic/regexec.c (cfind): * generic/tclCompExpr.c (CompileSubExpr): * generic/tclNamesp.c (NamespaceEnsembleCmd): * unix/tclUnixChan.c (TclUnixWaitForFile): initialise variables to silence gcc 4 warnings. * generic/tclExecute.c (TclExecuteByteCode): fix unused variable warning when NO_WIDE_TYPE is defined. * generic/regguts.h: only #define NDEBUG if not already #defined. * unix/tclUnixNotfy.c: * macosx/tclMacOSXNotify.c: sync whitespace & comments. * unix/tclUnixPort.h: * win/tclWinPort.h: remove declaration of obsolete&unused TclpMutex API. * unix/configure: * unix/tclConfig.h.in: regen.
* | ANSIfy (though only partially - function decls only - for tclExecute.c)dkf2005-11-021-47/+47
| |
* | Getting more systematic about styledkf2005-07-241-96/+98
| |
* | Merged kennykb-numerics-branch back to the head; TIPs 132 and 232Kevin B Kenny2005-05-101-1/+1
| |
* | Modified TclFinalizeThreadAlloc() to explicitly call TclpFreeAllocCachevasiljevic2005-04-161-1/+3
| | | | | | | | | | with the NULL-ptr as argument signalling cleanup of private tsd key used only by the threading allocator
* | * generic/tclEvent.c: Correct threaded obj allocator tohobbs2004-07-211-2/+60
| | | | | | | | | | | | | | * generic/tclInt.h: fully cleanup on exit and allow for * generic/tclThreadAlloc.c: reinitialization. [Bug #736426] * unix/tclUnixThrd.c: (mistachkin, kenny) * win/tclWinThrd.c:
* | Make [Bug 975895] less likely to be hitdkf2004-06-211-257/+274
| |