On Sat, 07 Apr 2012 12:45:44 -0400, Rainer Schuetze <r.sagita...@gmx.de> wrote:



On 4/6/2012 6:20 PM, deadalnix wrote:
Le 06/04/2012 18:07, Andrei Alexandrescu a écrit :
A few more samples of people's perception of the two languages:

http://news.ycombinator.com/item?id=3805302


Andrei

I did some measurement on that point for D lately :
http://www.deadalnix.me/2012/03/05/impact-of-64bits-vs-32bits-when-using-non-precise-gc/


I studied the GC a bit more and noticed a possible issue:

- memory allocations are aligned up to a power of 2 <= page size
- the memory area beyond the actually requested size is left untouched when allocating

No, it's zeroed if the block is requested without the NO_SCAN bit set.

see: https://github.com/D-Programming-Language/druntime/blob/master/src/gc/gcx.d#L479

Note to Sean, it's not in the no-sync part (makes sense, why hold the lock while you are memsetting).

-Steve

Reply via email to