Overview
| Artifact ID: | 41af45dba3532234fda0255f72f7f4c1e51eddc578d5337e224f96a7e99c7a31 |
|---|---|
| Ticket: | 31294d48efe6ead48dcd44677774b026045d5cb6
Threaded allocator cannot be disabled in Tcl 9: -DUSE_THREAD_ALLOC=0 and nmake OPTS=tclalloc ignored |
| User & Date: | serhiy.storchaka on 2026-10-17 13:04:57 |
Changes
- icomment:
Proposed fix in branch [/timeline?r=thread-alloc-off-switch|thread-alloc-off-switch]: <tt>tclInt.h</tt> undefines <tt>USE_THREAD_ALLOC</tt> when it is defined as 0, and <tt>win/rules.vc</tt> passes <tt>/DUSE_THREAD_ALLOC=0</tt> for <tt>OPTS=tclalloc</tt> with Tcl 9. Both a Unix build with <tt>CFLAGS=-DUSE_THREAD_ALLOC=0</tt> and an nmake build with <tt>OPTS=tclalloc</tt> now get <tt>TclpAlloc</tt> from tclAlloc.c, and pass the tests.
- login: "serhiy.storchaka"
- mimetype: "text/x-fossil-wiki"