1
0
mirror of https://github.com/MariaDB/server.git synced 2025-05-28 13:01:41 +03:00
unknown 435b20aa68 Simpler arena swapping code
Now thd->mem_root is a pointer to thd->main_mem_root and THR_MALLOC is a pointer to thd->mem_root.
This gives us the following benefits:
- Allow us to easily detect if arena has already been swapped before (this fixes a bug in setup_conds() where arena was swaped twice in some cases)
- Faster swaps of arenas (as we don't have to copy the whole MEM_ROOT)
- We don't anymore have to call my_pthread_setspecific_ptr(THR_MALLOC,...) to change where memory is alloced. Now it's enough to set thd->mem_root



client/mysqltest.c:
  Remove some not needed defines
  (Things like this should be done in config-win.h)
include/config-win.h:
  Added popen() and pclose() compatibility macros
mysql-test/t/rpl_failed_optimize-master.opt:
  Portability fix
sql/ha_berkeley.cc:
  New thd->memroot handling
sql/item_cmpfunc.cc:
  Simpler arena swapping code
sql/item_func.cc:
  Simpler arena swapping code
sql/item_subselect.cc:
  Simpler arena swapping code
  New thd->mem_root handling
sql/item_sum.cc:
  New thd->mem_root handling
sql/item_timefunc.cc:
  Fixed not-initalized usage errors found by valgrind
sql/log_event.cc:
  New thd->mem_root handling
sql/mysql_priv.h:
  New thd->mem_root handling
sql/mysqld.cc:
  New thd->mem_root handling
sql/opt_range.cc:
  New thd->mem_root handling
sql/repl_failsafe.cc:
  New thd->mem_root handling
sql/set_var.cc:
  New thd->mem_root handling
sql/sql_acl.cc:
  New thd->mem_root handling
sql/sql_base.cc:
  Simpler arena swapping code
  New thd->mem_root handling
sql/sql_class.cc:
  New thd->mem_root handling
sql/sql_class.h:
  Simpler arena swapping code
  New thd->mem_root handling
sql/sql_db.cc:
  New thd->mem_root handling
sql/sql_error.cc:
  New thd->mem_root handling
sql/sql_help.cc:
  New thd->mem_root handling
sql/sql_insert.cc:
  New thd->mem_root handling
sql/sql_parse.cc:
  New thd->mem_root handling
  Added some extra checking of return value of new
sql/sql_prepare.cc:
  New thd->mem_root handling
sql/sql_select.cc:
  New thd->mem_root handling
sql/sql_select.h:
  New thd->mem_root handling
sql/sql_union.cc:
  Simpler arena swapping code
sql/sql_yacc.yy:
  New thd->mem_root handling
sql/table.cc:
  New thd->mem_root handling
sql/thr_malloc.cc:
  New thd->mem_root handling
tests/client_test.c:
  Added drop table to some tests
  Changed some table names to 't1'
2004-11-08 01:13:54 +02:00
..
2004-05-05 17:05:24 +03:00
2003-04-03 21:19:12 +03:00
2003-12-10 04:31:42 +00:00
2003-12-10 04:31:42 +00:00
2003-12-10 04:31:42 +00:00
2004-02-16 10:03:25 +02:00
2004-08-26 18:26:38 +03:00
2003-11-21 01:53:01 +02:00
2003-02-10 18:01:29 +02:00
2004-08-26 18:26:38 +03:00
2004-02-16 10:03:25 +02:00
2004-03-29 17:27:30 +05:00
2004-10-07 10:50:13 +03:00
2004-11-02 16:02:12 +04:00
2004-10-06 19:14:33 +03:00
2004-10-07 10:50:13 +03:00
2003-12-10 04:31:42 +00:00
2004-08-26 18:26:38 +03:00
2003-06-04 19:21:51 +03:00
2004-08-20 22:54:42 +02:00
2003-08-11 22:44:43 +03:00
2003-12-10 04:31:42 +00:00
2004-09-16 00:47:45 +06:00
2004-11-04 21:25:49 +05:00
2003-12-10 04:31:42 +00:00
2003-10-31 11:52:46 +02:00
2004-10-06 19:14:33 +03:00
2004-11-04 20:39:52 -08:00
2004-08-18 12:11:26 +05:00
2004-08-18 19:57:55 +02:00
2004-03-16 16:35:53 +01:00
2003-12-17 17:35:34 +02:00
2004-10-06 19:14:33 +03:00
2004-06-21 10:21:20 +03:00
2004-10-07 10:50:13 +03:00
2004-08-26 18:26:38 +03:00
2003-12-10 04:31:42 +00:00
2004-03-31 03:32:38 +03:00
2003-12-10 04:31:42 +00:00
2004-06-26 14:21:32 +02:00
2003-12-10 04:31:42 +00:00
2003-12-10 04:31:42 +00:00
2004-11-04 21:25:49 +05:00
2003-12-10 04:31:42 +00:00
2003-12-10 04:31:42 +00:00
2004-11-02 20:13:27 +02:00
2003-12-17 17:35:34 +02:00
2003-12-17 17:35:34 +02:00
2004-10-06 19:14:33 +03:00
2004-02-11 00:06:46 +01:00
2004-06-27 13:16:19 +02:00
2004-04-07 16:04:28 +02:00
2003-12-10 04:31:42 +00:00
2004-10-07 10:50:13 +03:00
2004-09-30 19:40:33 +02:00
2003-09-24 23:25:58 +04:00
2004-10-12 07:20:38 +02:00
2004-09-30 21:36:25 +00:00
2004-10-07 08:42:11 +00:00
2004-08-31 21:10:57 +03:00
2003-12-10 04:31:42 +00:00
2004-08-22 12:47:11 +02:00
2004-08-12 00:02:29 -07:00
2003-08-29 13:44:35 +03:00
2004-10-10 15:29:06 +05:00
2003-08-20 16:25:44 +03:00
2003-12-10 04:31:42 +00:00
2004-10-27 19:52:41 +03:00
2004-05-05 17:05:24 +03:00
2004-10-07 10:50:13 +03:00
2003-12-10 04:31:42 +00:00
2004-02-16 10:03:25 +02:00
2003-12-10 04:31:42 +00:00
2003-02-04 21:52:14 +02:00
2003-08-11 22:44:43 +03:00
2003-10-08 12:01:58 +03:00
2003-11-25 18:26:53 +01:00
2004-10-20 17:28:40 +03:00
2004-07-20 11:00:10 +02:00
2003-12-19 16:25:50 +02:00
2004-05-17 01:52:13 +03:00
2003-12-10 04:31:42 +00:00
2004-06-21 10:21:20 +03:00
2004-02-11 00:06:46 +01:00
2003-11-23 17:02:59 +01:00
2004-05-17 01:52:13 +03:00
2004-05-17 01:52:13 +03:00
2004-05-17 01:52:13 +03:00
2004-05-05 17:05:24 +03:00
2004-02-22 11:22:51 +01:00
2004-05-24 21:12:05 +04:00
2003-06-15 12:01:51 +02:00
2003-11-04 09:40:36 +02:00
2002-08-24 02:10:49 +03:00
2004-05-17 01:52:13 +03:00
2004-09-07 21:30:28 +02:00
2001-12-12 18:55:33 -07:00
2004-05-19 05:09:10 +03:00
2004-02-16 10:03:25 +02:00
2004-08-07 23:18:13 +02:00
2003-08-29 13:44:35 +03:00
2003-12-10 04:31:42 +00:00
2004-09-08 21:54:01 +03:00
2004-08-24 17:24:23 +02:00
2004-08-18 19:57:55 +02:00
2004-06-18 04:38:58 +03:00
2004-11-04 21:25:49 +05:00
2003-09-15 10:26:48 +05:00
2004-08-18 19:57:55 +02:00
2004-02-11 00:06:46 +01:00
2004-10-06 19:14:33 +03:00
2004-11-05 14:07:12 +04:00