diff options
author | Sergei Golubchik <sergii@pisem.net> | 2013-01-28 15:06:36 +0100 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2013-01-28 15:06:36 +0100 |
commit | cf20de000bdff07a34a373079991d24837423896 (patch) | |
tree | 7d47c323a4a78ade52642e622e57c9ea4c32c991 /include/my_sys.h | |
parent | a48c2f461e81f8dd2a7058107fc0acff0b578fdd (diff) | |
download | mariadb-git-cf20de000bdff07a34a373079991d24837423896.tar.gz |
my_alloca() when it's mapped to malloc() works most certainly MY_THREAD_SPECIFIC
Diffstat (limited to 'include/my_sys.h')
-rw-r--r-- | include/my_sys.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/my_sys.h b/include/my_sys.h index 13e4d463515..25f328b8a33 100644 --- a/include/my_sys.h +++ b/include/my_sys.h @@ -199,7 +199,7 @@ extern void my_large_free(uchar *ptr); #define my_alloca(SZ) alloca((size_t) (SZ)) #define my_afree(PTR) ((void)0) #else -#define my_alloca(SZ) my_malloc(SZ,MYF(MY_FAE)) +#define my_alloca(SZ) my_malloc(SZ,MYF(MY_FAE|MY_THREAD_SPECIFIC)) #define my_afree(PTR) my_free(PTR) #endif /* HAVE_ALLOCA */ |