Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Bug#245678: zsh: built-in rm -rf fills up the memory



> Looks like a rewrite of hrealloc is definitely in order...
> 
> Does the bad behaviour go away if USE_MMAP is undefined?

It performs the rm -rf quickly, and there is only one instance in which
h->used + (new - old) is greater than HEAP_ARENA_SIZE:
16336 [out of 0] + (15984 - 15912) > 16360

Odd that h->size seems to be 0.



Messages sorted by: Reverse Date, Date, Thread, Author