classpath-patches
[Top][All Lists]
Advanced

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

RE: [cp-patches] handle case with lots of unreferenced objectsthat has f


From: Jeroen Frijters
Subject: RE: [cp-patches] handle case with lots of unreferenced objectsthat has fd's open
Date: Sun, 7 Nov 2004 14:19:30 +0100

Noa Resare wrote:
> fre 2004-11-05 klockan 17:25 +0100 skrev Noa Resare:
> > Stay tuned for some experimental code in a few hours :)
> > /noa
> 
> After some lots of reading and trying to understand how finalization
> really works I found out that kaffe's System.runFinalization() really
> works as one would expect, waiting for finalization to finish and the
> reason for the mauve test failing was that there was another piece of
> code (in java/io/File.java) that also did try to open files. After
> adding runFinalization() there too the mauve failure is gone in kaffe
> and jamvm.
> 
> Please see the updated patch below.

I'm not too thrilled about this approach. IMO, either the VM interface
needs to be rich enough to determine the actuall error (so that we know
the error is possibly due to lack of file descriptors), or we need to
delegate this behavior to the VM layer.

Simply retrying all failed opens seems like a dangerous thing to do
(e.g. think about files that aren't really files).

Regards,
Jeroen




reply via email to

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