Fix name mangling for stress tests.

Fix stress tests such that testlib code uses the jet_ allocator, but
test code uses libjemalloc.

Generate jemalloc_{rename,mangle}.h, the former because it's needed for
the stress test name mangling fix, and the latter for consistency.  As
an artifact of this change, some (but not all) definitions related to
the experimental API are absent from the headers unless the feature is
enabled at configure time.
This commit is contained in:
Jason Evans
2014-01-16 17:38:01 -08:00
parent 4f37ef693e
commit f234dc51b9
13 changed files with 164 additions and 174 deletions

View File

@@ -1,5 +1,6 @@
#!/bin/sh
for symbol in `cat $1` ; do
echo "#undef je_${symbol}"
for nm in `cat $1` ; do
n=`echo ${nm} |tr ':' ' ' |awk '{print $1}'`
echo "#undef je_${n}"
done