This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: C++/Java: Don't use type size in object allocation
- From: Tom Tromey <tromey at redhat dot com>
- To: Bryce McKinlay <mckinlay at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org, java-patches at gcc dot gnu dot org
- Date: 15 Apr 2004 17:23:24 -0600
- Subject: Re: C++/Java: Don't use type size in object allocation
- References: <407F0F5C.5070604@redhat.com>
- Reply-to: tromey at redhat dot com
>>>>> "Bryce" == Bryce McKinlay <mckinlay@redhat.com> writes:
Bryce> As a side benefit, this change shaves 70k off libgcj.so sinces it
Bryce> reduces the code needed to push parameters for each "new".
Nice.
Bryce> extern inline jobject
Bryce> JvAllocObject (jclass cls, jsize sz)
Bryce> {
Bryce> - return _Jv_AllocObject (cls, sz);
Bryce> + return _Jv_AllocObject (cls);
Bryce> }
Does this function even make sense any more?
I think we should remove it and update gcj.texi.
Tom