Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2026-10-20
20:42 • Ticket [31294d48ef] Threaded allocator cannot be disabled in Tcl 9: -DUSE_THREAD... artifact: 612a6abf63 user: jan.nijtmans
2004-12-07
03:04 • Ticket [1079199fff] Build a threaded Tcl without the "zippy" allocator... artifact: 6fe3e7c8b3 user: hobbs
2004-12-06
20:03 • Ticket [1079199fff]: 4 changes artifact: 3341f1e87c user: dkf
19:24 • Ticket [1079199fff]: 4 changes artifact: c4ddec68f8 user: dossy
18:41 • Ticket [1079199fff]: 4 changes artifact: 4740570c3f user: dkf
2004-12-05
02:23 • New ticket [1079199fff]. artifact: fd3a9d3ee5 user: dossy

Build a threaded Tcl without the "zippy" allocator.

Open1079199fffffffffffffffffffffffffffffffffCreated 22 years agoUpdated 22 years ago
Descriptionplain2004-12-05 02:23:07
Currently, there is no way to build a threaded Tcl
without the "zippy" memory allocator.

Basically, this build is one where TCL_THREADS is
defined, but USE_THREAD_ALLOC is not.  The original Tcl
allocator from generic/tclAlloc.c will be used, but the
rest of Tcl will be built threaded.

Currently, a "no-zippy" build can be produced on Unix
platforms by executing the following after running
Tcl's "configure" script:

        % cd unix
        % sed -e 's/-DUSE_THREAD_ALLOC=1//' Makefile >
Makefile.new
        % sed -e 's/-DUSE_THREAD_ALLOC=1//'
tclConfig.sh > tclConfig.sh.new
        % cp Makefile.new Makefile
        % cp tclConfig.sh.new tclConfig.sh

It would be good if Tcl's "configure" script understood
this configuration, though.

See [Bug #1030548] for more detail and discussion of
this issue.
Referenced by1
  • 612a6abf63Ticket [31294d48ef] Threaded allocator cannot be disabled in Tcl 9: -DUSE_THREAD_ALLOC=0 and nmake OPTS=tclalloc ignored status still Open with 6 other changes ticket2026-10-20 20:42:12
dkfplain2004-12-06 18:41:15
Logged In: YES 
user_id=79902

You'll hate me for this, but... it seems to work for me in
the following configuration:
./configure --enable-langinfo --enable-symbols=all
--enable-threads
# Then edit the files outlined above to make sure that
USE_THREAD_ALLOC is undefined
Then either 'make shell' or 'make test' to put things
through their paces.

OTOH, perhaps this demonstrates the inadequacy of the tests
in this area. :^/
dossyplain2004-12-06 19:24:36
Logged In: YES 
user_id=21885

Sorry, I meant "there's no way to do it [using Tcl's
configure script]" -- yes, we are already producing
non-zippy builds by applying the two sed commands I
mentioned above.

The point of the RFE is to make this configuration
officially supported by providing a means of configuring it
using the Tcl "configure" script, rather than "hacking it
in" with some sed scripts.
dkfplain2004-12-06 20:03:53
Logged In: YES 
user_id=79902

Ah, I misunderstood. :^)
hobbsplain2004-12-07 03:04:09
Logged In: YES 
user_id=72656

I support adding the configure option variance, but not for
8.4.9, which is frozen.
Log in (anonymous is fine) to add a comment.