chicken-janitors
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-janitors] #1356: trace buffer unnecessarily holds on to thr


From: Chicken Trac
Subject: Re: [Chicken-janitors] #1356: trace buffer unnecessarily holds on to thread objects
Date: Fri, 27 Oct 2017 16:05:41 -0000

#1356: trace buffer unnecessarily holds on to thread objects
-----------------------------------+--------------------
            Reporter:  kristianlm  |      Owner:
                Type:  defect      |     Status:  new
            Priority:  minor       |  Milestone:  5.0
           Component:  unknown     |    Version:  4.12.0
          Resolution:              |   Keywords:
Estimated difficulty:  medium      |
-----------------------------------+--------------------
Changes (by felix):

 * difficulty:  easy => medium


Comment:

 Basically it is not hard to replace the thread slot in the trace buffer
 entry with the name (a patch is attached), but the problem is that when
 obtaining the trace for a particular thread, we want to extract only the
 entries for this thread. `chicken.base#get-call-chain` uses the thread
 slot to distinguish the different currently running threads that have
 entries in the trace buffer. We could compare by name (this is what the
 patch does), but if two threads have ther same name then their backtraces
 will be merged.

 That is, we need a way to obtain the identity of a thread without holding
 the thread itself. An additonal slot with a fixnum id could be enough, for
 example.

--
Ticket URL: <https://bugs.call-cc.org/ticket/1356#comment:8>
CHICKEN Scheme <https://www.call-cc.org/>
CHICKEN Scheme is a compiler for the Scheme programming language.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]