Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: zselect builtin.
- X-seq: zsh-workers 17105
- From: Peter Stephenson <pws@xxxxxxx>
- To: zsh-workers@xxxxxxxxxx (Zsh hackers list)
- Subject: Re: PATCH: zselect builtin.
- Date: Wed, 08 May 2002 18:49:15 +0100
- In-reply-to: "Peter Stephenson"'s message of "Wed, 08 May 2002 18:23:45 BST." <26624.1020878625@xxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
Peter Stephenson wrote:
> When a function is executed, it gets copied to a new structure tree.
> When this is finished with, it gets passed to freeeprog(). But that
> doesn't free it, in case something is still executing it. It only gets
> freed by freeeprogs() when control returns to the top level. As my
> function executes in a while loop, this never happens. I tested this by
> removing all function calls from the while loop and putting the builtins
> inline, and the memory stopped increasing.
This isn't quite right; normal function execution doesn't work quite
that way. What is happening is I have a function that sets a trap,
which gets restored because of the localtraps option. Freeing a trap
does use freeeprog, with the described behaviour. So it's less
disastrous, and I can probably avoid using local traps, but would still
be nice to fix.
--
Peter Stephenson <pws@xxxxxxx> Software Engineer
CSR Ltd., Science Park, Milton Road,
Cambridge, CB4 0WH, UK Tel: +44 (0)1223 392070
**********************************************************************
The information transmitted is intended only for the person or
entity to which it is addressed and may contain confidential
and/or privileged material.
Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by
persons or entities other than the intended recipient is
prohibited.
If you received this in error, please contact the sender and
delete the material from any computer.
**********************************************************************
Messages sorted by:
Reverse Date,
Date,
Thread,
Author