mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-25 04:12:12 +03:00
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. |
||
|---|---|---|
| .. | ||
| aligned_alloc.c | ||
| aligned_alloc.exp | ||
| allocated.c | ||
| allocated.exp | ||
| allocm.c | ||
| allocm.exp | ||
| bitmap.c | ||
| bitmap.exp | ||
| jemalloc_test.h.in | ||
| mremap.c | ||
| mremap.exp | ||
| posix_memalign.c | ||
| posix_memalign.exp | ||
| rallocm.c | ||
| rallocm.exp | ||
| thread_arena.c | ||
| thread_arena.exp | ||
| thread_tcache_enabled.c | ||
| thread_tcache_enabled.exp | ||