readFile close behaviour
Jens Petersen
petersen at redhat.com
Fri Oct 5 08:54:20 EDT 2001
Pixel <pixel at mandrakesoft.com> writes:
> Malcolm Wallace <Malcolm.Wallace at cs.york.ac.uk> writes:
>
>> It is really a question of when the garbage collector runs.
>> Your example program is very small, so the GC does not run (and
>> therefore does not collect the unused handles) before the open file
>> table is filled.
IMHO that is not good enough.
> what about running the garbage collector for such errors, just in
> case it can help? all resources that can be freed by the garbage
> collector should trigger a GC when that resource is low, uh?
Agreed. That's like a reasonable solution.
> (maybe that's what ghc-5.02 is doing since i've not been able to
> reproduce the pb after increasing the heap)
I'm surprised you can't reproduce it. Are you configuring the RTS
differently from the default?
Jens
More information about the Glasgow-haskell-bugs
mailing list