Lost patch / performance improvement

Bryce McKinlay bryce@waitaki.otago.ac.nz
Mon Oct 8 11:49:00 GMT 2001


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.




More information about the Java-patches mailing list