std.allocator ready for some abuse

bearophile bearophileHUGS at lycos.com
Thu Oct 24 16:01:57 PDT 2013


Andrei Alexandrescu:

>> - Can you create an hierarchical allocator with those?
>
> Not sure what that means (I recall the phrase has been 
> discussed but forgot what it means).

I meant something like this:

http://swapped.cc/?_escaped_fragment_=/halloc#!/halloc


> (Including awareness of virtual memory management from the OS).
>
> Definitely!
>
> * 
> http://stackoverflow.com/questions/3839922/aligned-malloc-in-gcc 
> comes to mind.
>
> * http://en.wikipedia.org/wiki/Sbrk
>
> * http://en.wikipedia.org/wiki/Mmap

By that "awareness" I meant something like what the Azul JavaVM 
does, here a panoramic view of similar ideas:

http://web.eece.maine.edu/~jyue/papers/iccci.pdf

Bye,
bearophile


More information about the Digitalmars-d mailing list