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]
Other format: [Raw text]

Re: Patch for Review: _Jv_TempUTFString + JV_TEMP_UTF_STRING


Hi People,

>I disagree, because the gain of not using the garbage collector is
>fairly small, and it's quite possible that if we work on the gc the
>difference will be even smaller.
>
>But yes, this thing isn't worth arguing about right now.

Sorry to cause trouble again.

I agree that this isn't worth splitting hairs about, but may I ask
one last thing before we put this thing to bed?

Given that:

- my crude tests indicate that using the garbage collector for these cases
  appears slower on both platforms (~17% slower on Windows):

  http://gcc.gnu.org/ml/java-patches/2003-q3/msg00392.html

- the kind of allocations done by this class / macro have no
  need for the GC

- this is all nicely encapsulated by a class + macro anyway

- people like have hinted at unsubstantiated GC problems
  on Win32 that additional allocations could exacerbate

...what would be the harm in committing my _Jv_Malloc() version
as-is and then switching to a _Jv_AllocBytes() version later on?

-- Mohan
http://www.thisiscool.com/
http://www.animalsong.org/





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