mariadb/scripts
Davi Arnaut f56dd32bf7 Bug#34043: Server loops excessively in _checkchunk() when safemalloc is enabled
Essentially, the problem is that safemalloc is excruciatingly
slow as it checks all allocated blocks for overrun at each
memory management primitive, yielding a almost exponential
slowdown for the memory management functions (malloc, realloc,
free). The overrun check basically consists of verifying some
bytes of a block for certain magic keys, which catches some
simple forms of overrun. Another minor problem is violation
of aliasing rules and that its own internal list of blocks
is prone to corruption.

Another issue with safemalloc is rather the maintenance cost
as the tool has a significant impact on the server code.
Given the magnitude of memory debuggers available nowadays,
especially those that are provided with the platform malloc
implementation, maintenance of a in-house and largely obsolete
memory debugger becomes a burden that is not worth the effort
due to its slowness and lack of support for detecting more
common forms of heap corruption.

Since there are third-party tools that can provide the same
functionality at a lower or comparable performance cost, the
solution is to simply remove safemalloc. Third-party tools
can provide the same functionality at a lower or comparable
performance cost. 

The removal of safemalloc also allows a simplification of the
malloc wrappers, removing quite a bit of kludge: redefinition
of my_malloc, my_free and the removal of the unused second
argument of my_free. Since free() always check whether the
supplied pointer is null, redudant checks are also removed.

Also, this patch adds unit testing for my_malloc and moves
my_realloc implementation into the same file as the other
memory allocation primitives.

client/mysqldump.c:
  Pass my_free directly as its signature is compatible with the
  callback type -- which wasn't the case for free_table_ent.
2010-07-08 18:20:08 -03:00
..
CMakeLists.txt merge 2010-06-18 17:04:15 +02:00
comp_sql.c Add "name of struct" as first arg to comp_sql 2007-04-23 14:01:48 +02:00
dheadgen.pl Some portability fixes. 2009-06-04 18:47:38 +02:00
fill_help_tables.sql
make_binary_distribution.sh Bug#54590 "make_binary_distribution" fails because a command 2010-06-17 20:10:17 +02:00
make_sharedlib_distribution.sh my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
make_win_bin_dist Make the libraries we produce on Windows actually usable 2010-04-16 10:27:18 +02:00
Makefile.am Another incarnation of the patch for Bug#30708 2010-05-19 17:00:23 +04:00
msql2mysql.sh gen_lex_hash.cc: 2007-01-31 00:06:42 +01:00
mysql_config.pl.in Bug#34043: Server loops excessively in _checkchunk() when safemalloc is enabled 2010-07-08 18:20:08 -03:00
mysql_config.sh Bug#34043: Server loops excessively in _checkchunk() when safemalloc is enabled 2010-07-08 18:20:08 -03:00
mysql_convert_table_format.sh Add support for wildcards in mysql_convert_table_format, and add 2009-04-28 11:47:34 -07:00
mysql_find_rows.sh Use /usr/bin/perl as standard Perl install path (bug#44643) 2009-05-09 23:43:48 +02:00
mysql_fix_extensions.sh Use /usr/bin/perl as standard Perl install path (bug#44643) 2009-05-09 23:43:48 +02:00
mysql_install_db.pl.in make_win_bin_dist CMakeLists.txt resolveip.c Makefile.am: 2007-12-28 01:02:28 +01:00
mysql_install_db.sh Manual merge of mysql-5.1-bugteam to mysql-trunk-merge. 2010-02-23 16:26:45 +03:00
mysql_secure_installation.pl.in Add a few comments to clarify do_query() return values in mysql_secure_installation.pl 2009-11-03 14:34:01 -07:00
mysql_secure_installation.sh Bug#48031: mysql_secure_installation -- bash bug regarding passwords with 2009-11-03 13:50:28 -07:00
mysql_setpermission.sh Merge up 5.0-build into 5.1-build: 2009-05-29 15:40:55 +02:00
mysql_system_tables.sql A patch for Bug#52444 (mysql_upgrade fails b/w 5.1 -> 5.5 (Celosia)). 2010-04-14 20:40:04 +04:00
mysql_system_tables_data.sql Backport of WL#798 (MySQL IPv6 support) from 6.0. 2009-11-25 13:53:23 +03:00
mysql_system_tables_fix.sql A patch for Bug#52444 (mysql_upgrade fails b/w 5.1 -> 5.5 (Celosia)). 2010-04-14 20:40:04 +04:00
mysql_test_data_timezone.sql Bug#20166 mysql-test-run.pl does not test system privilege tables creation 2007-02-26 11:49:24 +01:00
mysql_zap.sh Merge up 5.0-build into 5.1-build: 2009-05-29 15:40:55 +02:00
mysqlaccess.conf
mysqlaccess.sh Use /usr/bin/perl as standard Perl install path (bug#44643) 2009-05-09 23:43:48 +02:00
mysqlbug.sh Modify "mysqlbug" ("scripts/mysqlbug.sh") so that it differs between the original 2007-10-18 12:03:30 +02:00
mysqld_multi.sh Bug #51468: mysqld_multi is broken in 5.1.44 2010-02-26 14:49:13 +02:00
mysqld_safe.sh BUG#52737: plugin_dir is set to /usr/local/mysql/lib/plugin while starting via mysqld_safe 2010-06-16 11:25:55 +02:00
mysqldumpslow.sh Add explanation of the possible -s values for mysqldumpslow. (Bug #35663, 2009-05-07 10:40:00 -07:00
mysqlhotcopy.sh Manual merge of mysql-5.1-bugteam to mysql-trunk-merge. 2010-04-30 00:33:06 +04:00