Out of Memory! Returning NIL!

David Brownell david-b@pacbell.net
Fri Apr 27 19:55:00 GMT 2001


Hi,
I was updating the http://xmlconf.sourceforge.net/java XML library to
use the 4/23/2001 GCJ snapshot (binutils 2.11, libtool 1.4). It
builds again now, apart from the DOM support (inner class problems).
It behaves partially, but dies a bit early ... I'm still looking at
just why. The "partially" means that it's able to use one of the
SAX2 parsers (AElfred2, the non-validating version) to load a test
database, and then it can run 35 (out of about 2000) XML and SAX2
conformance tests ... in this case, parsing and checking the output.
On the 36th test case, I see a message "Out of memory! Returning NIL!"
and a java.lang.OutOfMemoryError is thrown. I'm just starting to
figure out what's throwing it and why. There doesn't seem to be an open
PR about "Out of Memory" runtime errors, but some similar reports were
on this list in January.
Does this sound familiar to anyone? An earlier version (very similar)
of this code ran with some GCJ 2.96 snapshots from late 1999, but I've
not used this with GCJ much since then. (GCJ 2.96rh doesn't get as
far as the current snapshot, FWIW.)
- Dave
p.s. I also noticed strange things in "gcj -Wall" output; some
 clearly spurious warnings about "unused" variables that were
 really used.


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /