std.allocator ready for some abuse

safety0ff safety0ff.dev at gmail.com
Thu Oct 31 19:26:18 PDT 2013


I noticed that the GCAllocator provides no way of controlling the 
memory block attributes 
(http://dlang.org/phobos/core_memory.html#.GC.BlkAttr ,) all 
allocations get the default (no attributes.) This is a leaky 
abstraction, a data structure or composed allocators may desire 
to control the attributes to reduce GC pressure.


More information about the Digitalmars-d mailing list