This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
FYI Patch: Fix interpret.cc
- From: Bryce McKinlay <mckinlay at redhat dot com>
- To: java-patches at gcc dot gnu dot org
- Date: Fri, 16 Apr 2004 15:40:27 -0400
- Subject: FYI Patch: Fix interpret.cc
This patch updates interpret.cc to use new _Jv_AllocObject args. I'm
checking this in.
Bryce
2004-04-16 Bryce McKinlay <mckinlay@redhat.com>
* interpret.cc (_Jv_InterpMethod::run): Update _Jv_AllocObject
arguments to match new signature. Remove FIXME comments.
Index: interpret.cc
===================================================================
RCS file: /cvs/gcc/gcc/libjava/interpret.cc,v
retrieving revision 1.40
diff -u -r1.40 interpret.cc
--- interpret.cc 14 Oct 2003 17:53:41 -0000 1.40
+++ interpret.cc 16 Apr 2004 19:33:21 -0000
@@ -2917,11 +2917,7 @@
{
int index = GET2U ();
jclass klass = (_Jv_ResolvePoolEntry (defining_class, index)).clazz;
- // We initialize here because otherwise `size_in_bytes' may
- // not be set correctly, leading us to pass `0' as the size.
- // FIXME: fix in the allocator? There is a PR for this.
- _Jv_InitClass (klass);
- jobject res = _Jv_AllocObject (klass, klass->size_in_bytes);
+ jobject res = _Jv_AllocObject (klass);
PUSHA (res);
#ifdef DIRECT_THREADED
@@ -2935,7 +2931,7 @@
new_resolved:
{
jclass klass = (jclass) AVAL ();
- jobject res = _Jv_AllocObject (klass, klass->size_in_bytes);
+ jobject res = _Jv_AllocObject (klass);
PUSHA (res);
}
NEXT_INSN;