Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Hum.. the Linux Kernel, it's pretty big :)

You get kmalloc() and kfree(), which are very similar to malloc() and free(). (Okey you also get kmem_cache_alloc()/kmem_cache_free() which gives you the ability to provide a ctor/dtor, but they are explicit)

tmalloc() does too much: The day you have some memory corruption / leak, you'll start being scared of using tmalloc().



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: