Historias
Slashboxes
Comentarios
 
Este hilo ha sido archivado. No pueden publicarse nuevos comentarios.
Mostrar opciones Umbral:
Y recuerda: Los comentarios que siguen pertenecen a las personas que los han enviado. No somos responsables de los mismos.
  • Re:malloc?

    (Puntos:2, Interesante)
    por mig21 (7781) <reversethis-{moc.liamg} {ta} {pb12gim}> el Jueves, 21 Febrero de 2008, 08:50h (#1017878)
    ( https://twitter.com/yapw | Última bitácora: Viernes, 13 Mayo de 2011, 21:21h )
    El comentario padre sí es informativo ;)

    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)
    --
    Aquí había una firma
    [ Padre ]
    Puntos de inicio:    1  punto
    Moderación   +1  
    Modificador extra 'Interesante'   0  

    Total marcador:   2