bug-coreutils
[Top][All Lists]
Advanced

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

Re: [Coreutils-announce] coreutils-4.5.8 released


From: Richard Dawe
Subject: Re: [Coreutils-announce] coreutils-4.5.8 released
Date: Sat, 22 Feb 2003 12:04:14 +0000

Hello.

Jim Meyering wrote:
[snip]
> But I'm still not done with du.
> This began some time ago when I realized that the presence of
> a very deep hierarchy (on the order of 25,000-30,000 levels)
> could cause du to segfault due to its recursion exceeding
> a system's stack size limit.  Using nftw didn't solve that
> problem, since it too is implemented with explicit recursion.
> Lots of programs have this limitation.
> 
> One proposed work-around was to use makecontext/setcontext to run
> the offending code in a context with a very large, (mmap'd) stack.
> I've implemented that, and although it does work -- at least on Linux --
> the mmap-stack.[ch] business is obviously just a band-aid.
> I expect to switch du.c to use fts soon, since it
> 
>   http://www.hmug.org/man/3/fts.html
> 
> isn't hindered by explicit recursion as ftw is, and since
> it already has all of the functionality required by du.
[snip]

Unfortunately DJGPP has neither mmap nor makecontext nor setcontext. It sounds
like makecontext/setcontext are similar to longjmp/setjmp, so perhaps they
could be implemented using them. Anyway, DJGPP is just one example where this
code won't work.

> P.S. I am looking for a new job, so as you might guess,
> would appreciate any pointers to interesting opportunities.
[snip]

Good luck! From my survey of some US companies' sites, there are vacancies at
Nvidia, QLogic, Apple, Qualcomm. Maybe one of those is your cup of tea? These
are mostly west-coast US (apart from Qualcomm), so maybe they're in the wrong
location.

Bye, Rich =]

-- 
Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ]




reply via email to

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