server-skynet-source-3rd-je.../include/jemalloc
Mike Hommey 8b49971d0c Avoid variable length arrays and remove declarations within code
MSVC doesn't support C99, and building as C++ to be able to use them is
dangerous, as C++ and C99 are incompatible.

Introduce a VARIABLE_ARRAY macro that either uses VLA when supported,
or alloca() otherwise. Note that using alloca() inside loops doesn't
quite work like VLAs, thus the use of VARIABLE_ARRAY there is discouraged.
It might be worth investigating ways to check whether VARIABLE_ARRAY is
used in such context at runtime in debug builds and bail out if that
happens.
2012-04-29 00:25:34 -07:00
..
internal Avoid variable length arrays and remove declarations within code 2012-04-29 00:25:34 -07:00
jemalloc_defs.h.in Add a pages_purge function to wrap madvise(JEMALLOC_MADV_PURGE) calls 2012-04-18 18:57:48 -07:00
jemalloc.h.in Revert "Use ffsl() in ALLOCM_ALIGN()." 2012-04-04 15:24:01 -07:00