On 10/24/13 4:01 PM, bearophile wrote:
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

I see. These are akin to regions to some extent, just a bit more dynamic. The design doesn't explicitly address the pattern, so I expect there would be some hiccups.

(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

Once we get to types and garbage, such stuff will become more relevant.


Andrei


Reply via email to