[Top][All Lists]

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

Re: GC and file descriptors (and external general, I guess)

From: Michael Livshin
Subject: Re: GC and file descriptors (and external general, I guess)
Date: 01 Nov 2000 08:44:16 +0200
User-agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (20 Minutes to Nikko)

Marius Vollmer <address@hidden> writes:

> Michael Livshin <address@hidden> writes:
> > currently, if a call to `open' or `opendir' fails, Guile throws an
> > error.
> > 
> > what it *should* do, IMHO, is try to GC first, since it is likely to
> > free some file descriptors.
> I think it's a good idea. (Of course, we should GC only when the error

of course.  I've somehow neglected to mention that, sorry.

> There is like no great danger of getting into
> oscillations, like there is for memory.


to clarify my motives, I've stumbled across this issue while
implementing lazy sweep behavior for the GC.  when sweep is lazy, you
really want to at least finish the sweep when you get EMFILE from
`open'.  a full GC may not even be necessary.

Paranoid schizophrenics outnumber their enemies at least two to one.

reply via email to

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