tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Where's 9.1's malloc?



Where is the source for 9.1's malloc implementation?

nm -o on /usr/lib/libc.a says malloc is defined in jemalloc.o.  I find
two jemalloc.c files in the source tree, one in lib/libc/stdlib and one
in external/bsd/jemalloc/dist/src.  I changed the former one and the
changes did not actually appear in libc, so I infer the latter must be
the one getting used.  On looking at the build log, I see it being
built - but the result appears to be going into libjemalloc, not libc,
leading me to think I'm missing something.  I also see no reason for
lib/libc/stdlib/jemalloc.c to exist if it's not getting used.

My most immediate question is, what file should I be hacking on to
fiddle the malloc implementation found in libc?

My experience has been that things I don't understand typically come
back to bite me, so, I'd also like to know, what am I missing?

/~\ The ASCII				  Mouse
\ / Ribbon Campaign
 X  Against HTML		mouse%rodents-montreal.org@localhost
/ \ Email!	     7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B


Home | Main Index | Thread Index | Old Index