Introduce header layering (#503)
See src/snmalloc/README.md for an explanation of the layers. Some other cleanups on the way: Fine-grained stats support is now gone. It's been broken for two years, it depends on iostream (which then causes linker failures with libstdc++) and it's collecting the wrong stats for the new design. After discussion with @mjp41, it's better to remove it and introduce new stats support later, rather than keep broken code in the main branch. Tracing was controlled with a preprocessor macro, now there's also a CMake option.
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
#undef SNMALLOC_NO_REALLOCARRAY
|
||||
#undef SNMALLOC_NO_REALLOCARR
|
||||
#define SNMALLOC_BOOTSTRAP_ALLOCATOR
|
||||
#include "../../../override/malloc.cc"
|
||||
#include <snmalloc/override/malloc.cc>
|
||||
|
||||
using namespace snmalloc;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user