
Hello all,
I have sent a new version. Although I tried to take into account all the opinions and comments I might have missed something.
On Wed, Sep 19, 2012 at 1:29 AM, Graeme Russ graeme.russ@gmail.com wrote:
I'd say, pull out the modification of global data into separate patch and put it before this patch. That'd make review of the core code much easier.
NAK - The addition of the global data member is intrinsic to the early malloc implmentaion. Keep them together
Yes, I think that in this case one does not make sense with the other. I kept them rather together.
+struct early_heap_header *early_brk(size_t size)
__attribute__((weak, alias("def_early_brk")));
what about using (it needs <linux/compiler.h>):
__weak struct early_heap_header *early_brk(size_t size) { ... body ... }
We already have a lot of the former - I prefer not to add additional semantics (unless you want to do a wholesale search/replace ;))
This time I used the shorter / newer variant. Hope this would be better.
Tomas