This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: C++/Java: Don't use type size in object allocation


>>>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]