summaryrefslogtreecommitdiff
path: root/include/my_valgrind.h
Commit message (Collapse)AuthorAgeFilesLines
* Merge 10.2 to 10.3Marko Mäkelä2019-08-131-2/+9
|\
| * Merge 10.1 into 10.2Marko Mäkelä2019-08-121-1/+8
| |\
| | * Document TRASH_FILL, TRASH_ALLOC, TRASH_FREEMarko Mäkelä2019-08-121-1/+9
| | |
* | | Merge 10.2 into 10.3Marko Mäkelä2019-05-291-1/+9
|\ \ \ | |/ /
| * | Merge 10.1 into 10.2Marko Mäkelä2019-05-281-1/+9
| |\ \ | | |/
| | * MDEV-17799 Add ASAN-poisoned redzones for MEM_ROOTSergei Golubchik2019-05-201-5/+6
| | | | | | | | | | | | | | | | | | post-merge changes Closes #954
| | * MDEV-17799 Add ASAN-poisoned redzones for MEM_ROOT and mem_heap_tEugene Kosov2019-05-201-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | This patch is for MEM_ROOT only. In debug mode add 8 byte of poisoned memory before every allocated chunk. On the right of every chunk there will be either 1-7 trailing poisoned bytes, or next chunk's redzone, or poisoned non allocated memory or redzone of a malloc()ed buffer.
* | | Merge 10.2 into 10.3Marko Mäkelä2019-05-141-1/+1
|\ \ \ | |/ /
| * | Merge 10.1 into 10.2Marko Mäkelä2019-05-131-1/+1
| |\ \ | | |/
| | * Update FSF addressMichal Schorm2019-05-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit is based on the work of Michal Schorm, rebased on the earliest MariaDB version. Th command line used to generate this diff was: find ./ -type f \ -exec sed -i -e 's/Foundation, Inc., 59 Temple Place, Suite 330, Boston, /Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, /g' {} \; \ -exec sed -i -e 's/Foundation, Inc. 59 Temple Place.* Suite 330, Boston, /Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, /g' {} \; \ -exec sed -i -e 's/MA.*.....-1307.*USA/MA 02110-1335 USA/g' {} \; \ -exec sed -i -e 's/Foundation, Inc., 59 Temple/Foundation, Inc., 51 Franklin/g' {} \; \ -exec sed -i -e 's/Place, Suite 330, Boston, MA.*02111-1307.*USA/Street, Fifth Floor, Boston, MA 02110-1335 USA/g' {} \; \ -exec sed -i -e 's/MA.*.....-1307/MA 02110-1335/g' {} \;
* | | Make TRASH_FREED_MEMORY a cmake option, similar to SAFEMALLOCVladislav Vaintroub2019-05-131-1/+1
| | |
* | | dirty mergeOleksandr Byelkin2019-02-071-2/+2
|\ \ \ | |/ /
| * | Merge 10.1 into 10.2Marko Mäkelä2019-02-031-2/+2
| |\ \ | | | | | | | | | | | | | | | | | | | | Temporarily disable a test for commit 2175bfce3e9da8332f10ab0e0286dc93915533a2 because fixing it in 10.2 requires updating libmariadb.
| | * \ Merge 10.1 into 10.1Marko Mäkelä2019-02-021-2/+2
| | |\ \ | | | |/ | | | | | | | | This is joint work with Oleksandr Byelkin.
| | | * Avoid noisy Clang 7 warning about unused variable.Vladislav Vaintroub2019-01-191-2/+2
| | | | | | | | | | | | | | | | Patch by Eugene Kosov.
| | | * MDEV-17248 Improve ASAN memory pool instrumentationEugene Kosov2018-09-211-2/+2
| | | | | | | | | | | | | | | | | | | | alloc_root(): unpoison only requested amount of bytes instead of a possible bigger aligned-sized buffer.
* | | | Merge branch '10.2' into 10.3Sergei Golubchik2018-03-281-0/+2
|\ \ \ \ | |/ / /
| * | | Merge 10.1 into 10.2Marko Mäkelä2018-03-211-0/+2
| |\ \ \ | | |/ /
| | * | Merge 10.0 into 10.1Marko Mäkelä2018-03-201-0/+2
| | |\ \
| | | * \ Merge 5.5 into 10.0Marko Mäkelä2018-03-201-0/+2
| | | |\ \ | | | | |/
| | | | * honor alignment rules and xtradb tooEugene Kosov2018-03-201-0/+2
| | | | |
* | | | | Merge remote-tracking branch 'origin/10.2' into bb-10.2-extAlexander Barkov2018-02-081-8/+19
|\ \ \ \ \ | |/ / / /
| * | | | Merge branch 'github/10.1' into 10.2Sergei Golubchik2018-02-061-8/+19
| |\ \ \ \ | | |/ / /
| | * | | Merge branch 'github/10.0' into 10.1Sergei Golubchik2018-02-021-7/+19
| | |\ \ \ | | | |/ /
| | | * | Merge remote-tracking branch '5.5' into 10.0Vicențiu Ciorbaru2018-01-241-7/+19
| | | |\ \ | | | | |/
| | | | * improve ASAN instrumentation: clangSergei Golubchik2018-01-221-0/+8
| | | | | | | | | | | | | | | | | | | | translate clang __has_feature to gcc macros
| | | | * improve ASAN instrumentation: TRASHSergei Golubchik2018-01-221-4/+4
| | | | | | | | | | | | | | | | | | | | mark freed memory as not accessible, not merely undefined
| | | | * Correct TRASH() macro usageSergei Golubchik2018-01-221-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | TRASH was mapped to TRASH_FREE and was supposed to be used for memory that should not be accessed anymore, while TRASH_ALLOC() is to be used for uninitialized but to-be-used memory. But sometimes TRASH() was used in the latter sense. Remove TRASH() macro, always use explicit TRASH_ALLOC() or TRASH_FREE().
| | | | * add support for ASAN instrumentationSergei Golubchik2018-01-161-3/+8
| | | | |
* | | | | Added TRASH_FREED_MEMORY compilation optionMonty2018-01-281-1/+1
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | One can use -DTRASH_FREED_MEMORY to enable TRASH macros. Useful to do when one suspects that there is accesses to freed memory. Extended my_free() to TRASH freed memory
* | | | Merge branch '10.1' into 10.2Sergei Golubchik2017-03-301-1/+1
|\ \ \ \ | |/ / /
| * | | Correct FSF addressiangilfillan2017-03-101-1/+1
| |/ /
* | | Fix many -Wconversion warnings.Marko Mäkelä2017-03-071-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Define my_thread_id as an unsigned type, to avoid mismatch with ulonglong. Change some parameters to this type. Use size_t in a few more places. Declare many flag constants as unsigned to avoid sign mismatch when shifting bits or applying the unary ~ operator. When applying the unary ~ operator to enum constants, explictly cast the result to an unsigned type, because enum constants can be treated as signed. In InnoDB, change the source code line number parameters from ulint to unsigned type. Also, make some InnoDB functions return a narrower type (unsigned or uint32_t instead of ulint; bool instead of ibool).
* | | valgrind failuresSergei Golubchik2016-09-211-0/+2
| | | | | | | | | | | | | | | | | | and a couple of collaterals: * debugging assert in my_valgrind.h * trivial cleanup in sql_union.cc
* | | cmake: remove unused checks, options, and symbolsSergei Golubchik2015-11-231-3/+3
|/ /
* | 10.0-base mergeSergei Golubchik2014-02-261-5/+1
|\ \ | |/
| * MDEV-5613 m_string.h exports generic function names without a namespace ↵Sergei Golubchik2014-02-171-5/+1
| | | | | | | | | | | | prefix, like str2int don't include m_string. in my_valgrind.h
* | Compile 10.0 on WindowsVladislav Vaintroub2012-08-301-1/+1
| |
* | More fixesMichael Widenius2012-08-171-1/+1
| |
* | Temporary commit of merge of MariaDB 10.0-base and MySQL 5.6Michael Widenius2012-08-011-2/+2
|/
* Do not use Valgrind client requests in a normal release build, they have a ↵unknown2012-03-221-1/+1
| | | | small but noticable performance impact.
* disable safemalloc for valgrind builds.Sergei Golubchik2012-02-231-1/+1
| | | | | | always try to use valgrind headers in debug builds. define HAVE_valgrind for --with-valgrind fix valgrind check in my_valgrind.h
* move safemalloc out of dbug.Sergei Golubchik2011-12-121-0/+1
| | | | | | remeber a real backtrace for every allocation. make safemalloc to tract C++ new/delete too. collateral fixes to make the test suite pass.
* merge with xtradb-5.5.15Sergei Golubchik2011-07-181-1/+1
| | | | fix test cases
* add safemalloc backSergei Golubchik2011-07-101-0/+46
... but differently client/mysqltest.cc: my_safe_print_str() don't append \n anymore dbug/dbug.c: restore safemalloc as a part of dbug suite dbug/user.r: restore 'S' flag documentation include/my_dbug.h: restore safemalloc as a part of dbug suite include/my_sys.h: move valgrind defines to a dedicated header mysys/my_malloc.c: use new safemalloc mysys/stacktrace.c: don't append \n. let the calller do it, if needed sql/mysqld.cc: my_safe_print_str() don't append \n anymore