Re: "TLS exhausted"; need help interpreting output from DUMP-THREAD

Robert Dodier <[email protected]> Sat, 15 Mar 2025 12:11:34 -0700
Newsgroups gmane.lisp.steel-bank.general
Message-ID <CAAsY_sSsW5fqUnHfOYVNLhzbvvjYp75qh-6dc58SWB8Sotgxjw@mail.gmail.com>
Thanks, Douglas, the SHOW-ALL-TLS-INDEXED-SYMBOLS function is very informative.

Running that function in the system of interest shows that there are
operations which are creating special variables, in this case
expression matching, which in Maxima involves automatically
constructing a matching function. Each such function creates a few
special variables, and so after creating enough of them, the system
runs out of TLS. I will look at reducing or eliminating the use of
special variables, and/or increasing TLS.

There are other situations in which Maxima runs out of TLS, and I
guess those will have to be handled case by case.

One final question to clarify the stuff about special variables and
TLS. Under what circumstances can special variables become garbage and
therefore disposed of by garbage collection? It appears this is not a
factor in the problem I am looking at, but I am interested to know in
general.

best,

Robert