mirror of
https://github.com/MariaDB/server.git
synced 2026-05-17 20:37:12 +02:00
MDEV-25123 support MSVC ASAN
This commit is contained in:
parent
4c2b6be38e
commit
031b3dfc22
4 changed files with 29 additions and 15 deletions
|
|
@ -667,7 +667,11 @@ extern void my_mutex_end(void);
|
|||
with the current number of keys and key parts.
|
||||
*/
|
||||
#if defined(__SANITIZE_ADDRESS__) || defined(WITH_UBSAN)
|
||||
#ifndef DBUG_OFF
|
||||
#define DEFAULT_THREAD_STACK (1024*1024L)
|
||||
#else
|
||||
#define DEFAULT_THREAD_STACK (383*1024L) /* 392192 */
|
||||
#endif
|
||||
#else
|
||||
#define DEFAULT_THREAD_STACK (292*1024L) /* 299008 */
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@
|
|||
# define MEM_GET_VBITS(a,b,len) VALGRIND_GET_VBITS(a,b,len)
|
||||
# define MEM_SET_VBITS(a,b,len) VALGRIND_SET_VBITS(a,b,len)
|
||||
# define REDZONE_SIZE 8
|
||||
#elif defined(__SANITIZE_ADDRESS__)
|
||||
#elif defined(__SANITIZE_ADDRESS__) && (!defined(_MSC_VER) || defined (__clang__))
|
||||
# include <sanitizer/asan_interface.h>
|
||||
/* How to do manual poisoning:
|
||||
https://github.com/google/sanitizers/wiki/AddressSanitizerManualPoisoning */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue