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


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

Re: preliminary invocation patch


Tom Tromey <tromey@redhat.com> writes:

> >>>>> "Per" == Per Bothner <per@bothner.com> writes:
> 
> Per> the number of characters written.  This can be used by gen_name,
> Per> but more importantly other routines like StringBuffer::append(int)
> Per> and Integer.toString().  These should not need to allocate
> Per> temporary buffers.
> 
> That sounds good.

I went and implemented a _Jv_FormatInt function, plus changed
some methods to use it.

> I wonder if there is an easy(-ish) way to make it so that this code
> can continue to remain in sync with Classpath as well.

Well, our String uses native code, and with append(int) using
_Jv_FormatInt StringBuffer would also use native code, so I guess not.

I suspect Classpath synchronization is less relevant for
java.lang anyway.
-- 
	--Per Bothner
per@bothner.com   http://www.bothner.com/per/


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