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: Lost patch / performance improvement


Boehm, Hans wrote:

>This piece of the parallel GC patch for the trunk appears to have gotten
>lost, probably because I forgot to send it to Tom earlier.  Without this
>patch, not many things are likely to take advantage of thread local
>allocation buffers.  Thus I suspect it makes a significant performance
>difference, especially on multiprocessors.  I have been running with this in
>a modified tree for a long time.  If someone could verify that this works in
>the current unmodified tree (on a Linux platform where THREAD_LOCAL_ALLOC is
>set), and approve it, I can check it in.
>
>(I won't claim it's beautiful.  If someone can think of a way to clean this
>up while preserving inlining, I'd be very interested.)
>

Is there a reason why we shouldn't enable thread local alloc by default? 
Also, wouldn't it make sense for the GC to define GC_gcj_malloc etc to 
mean GC_gcj_local_malloc automatically if THREAD_LOCAL_ALLOC is 
supported/defined?

regards

Bryce.



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