Re:Tinyalloc: replacement for malloc/free in unmanaged, line...
by chrisseaton on Sunday January 06, 2019 @11:48AM
(#18839144)
How do you think we should be dealing with memory allocation instead?
[ Parent
| on HN ]
Re:Tinyalloc: replacement for malloc/free in unmanaged, line...
by blattimwind on Sunday January 06, 2019 @01:14PM
(#18839646)
addr = getrandom(8);
mem = mmap(addr, len, PROT_RWX, MAP_FIXED|MAP_ANON, -1, 0);
Re:Tinyalloc: replacement for malloc/free in unmanaged, line...
by chrisseaton on Sunday January 06, 2019 @01:22PM
(#18839683)
It's not realistic to use a per-allocation mapping like that in production - all your allocations will be scaled up to multiples of pages.
Re:Tinyalloc: replacement for malloc/free in unmanaged, line...
by jacquesm on Sunday January 06, 2019 @01:33PM
(#18839741)
Whoosh!
Re:Tinyalloc: replacement for malloc/free in unmanaged, line...
by saagarjha on Sunday January 06, 2019 @02:00PM
(#18839908)
> PROT_RWX
Hmm…
Re:Tinyalloc: replacement for malloc/free in unmanaged, line...
by blattimwind on Sunday January 06, 2019 @02:09PM
(#18839968)
The X is for fleXibility.