[gcjx] Patch: FYI: uninitialized field
Tom Tromey
tromey@redhat.com
Wed Oct 19 01:15:00 GMT 2005
I'm checking this in on the gcjx branch.
valgrind found a couple of uninitialized fields.
(It also found some memory leaks but I'm putting those off for the
time being.)
Tom
Index: ChangeLog
from Tom Tromey <tromey@redhat.com>
* model/method.cc (model_method): Set body,
is_instance_initializer.
Index: model/method.cc
===================================================================
RCS file: /cvs/gcc/gcc/gcjx/model/Attic/method.cc,v
retrieving revision 1.1.2.8
diff -u -r1.1.2.8 method.cc
--- model/method.cc 18 Oct 2005 22:16:55 -0000 1.1.2.8
+++ model/method.cc 19 Oct 2005 01:14:17 -0000
@@ -63,10 +63,12 @@
set_return_type (wrap (other->return_type->type (), enclosing, type_map));
// FIXME: what do we do with the body?
+ body = NULL;
varargs = other->varargs;
used = false;
overrides = other->overrides;
+ is_instance_initializer = other->is_instance_initializer;
}
ref_method
More information about the Java-patches
mailing list