Para windows, como siempre estas cosas son un poco más difíciles... siguiendo el enlace que puse ayer a toda prisa, se llega a Patching the Windows CRT [smedbergs.us]:
On Linux, intercepting and replacing malloc is fairly easy, because of the way dynamic symbol loading works [...]
The Windows CRT sources come with VC8 professional edition so any licensed user may hack on them and redistribute the result as part of a larger program [...]
Getting the new jemalloc.c file to build wasn't that hard, either: it required a few #defines, typedefs, and disabled warnings, but nothing serious. The hardest part about replacing It was figuring out what parts of the original CRT were heap-related and removing them correctly. It was a wild ride, but I think that I have a build of the Windows CRT that works... at least small programs like xpidl and shlibsign work.
Nota, para el que no le suene, CRT es C RunTime, (que es la librería de C, la que implementa malloc, como bien dice Draco)
Re:malloc?
(Puntos:2, Interesante)( https://twitter.com/yapw | Última bitácora: Viernes, 13 Mayo de 2011, 21:21h )
Para windows, como siempre estas cosas son un poco más difíciles... siguiendo el enlace que puse ayer a toda prisa, se llega a Patching the Windows CRT [smedbergs.us]:Nota, para el que no le suene, CRT es C RunTime, (que es la librería de C, la que implementa malloc, como bien dice Draco)
Aquí había una firma