-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Phil Muldoon wrote:
I reverted LinuxTask.hava from 1.32. The endian patch was causing a few
issues. Perhaps the ultimate issue is in getIsa() using an elfFile which
uses a file handle. The theory is these handles are being queued for
Garbage Collection along with the object when the object is destroyed,
but the system is running out of handles before the Garbage Collection
is happening. Hopefully I have not totally mangled that explanation
though that people worked through on irc today. ;)
The problem is that the file descriptor passed to libelf is *never*
closed, whether or not the Elf Java object is garbage collected. I've
added an explicit close() method for the Elf object so that getIsa() can
release the file descriptor right away, and of course added the code to
close the file descriptor. frysk-core TestRunner tests run now, but I'm
going to sleep in it before checking in my code.