mariadb/storage/innobase/row
Monty 0ccdf54b64 Check and remove high stack usage
I checked all stack overflow potential problems found with
gcc -Wstack-usage=16384
and
clang -Wframe-larger-than=16384 -no-inline

Fixes:
Added '#pragma clang diagnostic ignored "-Wframe-larger-than="'
  to a lot of function to where stack usage large but resonable.
- Added stack check warnings to BUILD scrips when using clang and debug.

Function changed to use malloc instead allocating things on stack:
- read_bootstrap_query() now allocates line_buffer (20000 bytes) with
  malloc() instead of using stack. This has a small performance impact
  but this is not releant for bootstrap.
- mroonga grn_select() used 65856 bytes on stack. Changed it to use
  malloc().
- Wsrep_schema::replay_transaction() and
  Wsrep_schema::recover_sr_transactions().
- Connect zipOpen3()

Not fixed:
- mroonga/vendor/groonga/lib/expr.c grn_proc_call() uses
  43712 byte on stack.  However this is not easy to fix as the stack
  used is caused by a lot of code generated by defines.
- Most changes in mroonga/groonga where only adding of pragmas to disable
  stack warnings.
- rocksdb/options/options_helper.cc uses 20288 of stack space.
  (no reason to fix except to get rid of the compiler warning)
- Causes using alloca() where the allocation size is resonable.
- An issue in libmariadb (reported to connectors).
2024-04-23 14:12:31 +03:00
..
row0ext.cc Merge 10.3 into 10.4 2020-07-02 07:39:33 +03:00
row0ftsort.cc Merge branch '10.5' into 10.6 2023-12-17 11:20:43 +01:00
row0import.cc Merge 10.5 into 10.6 2024-04-17 14:14:58 +03:00
row0ins.cc Merge 10.5 into 10.6 2024-04-17 14:14:58 +03:00
row0log.cc MDEV-32050: Clean up online ALTER 2023-10-25 08:27:27 +03:00
row0merge.cc Merge 10.5 into 10.6 2024-02-13 20:42:59 +02:00
row0mysql.cc MDEV-26642/MDEV-26643/MDEV-32898 Implement innodb_snapshot_isolation 2024-03-20 09:48:03 +02:00
row0purge.cc MDEV-32068 Some calls to buf_read_ahead_linear() seem to be useless 2023-12-05 12:31:29 +02:00
row0quiesce.cc Check and remove high stack usage 2024-04-23 14:12:31 +03:00
row0row.cc MDEV-30400 Assertion height == btr_page_get_level(...) on INSERT 2023-01-24 14:09:21 +02:00
row0sel.cc Merge 10.5 into 10.6 2024-04-17 14:14:58 +03:00
row0uins.cc MDEV-32050: Clean up log parsing 2023-10-25 08:27:08 +03:00
row0umod.cc MDEV-26642/MDEV-26643/MDEV-32898 Implement innodb_snapshot_isolation 2024-03-20 09:48:03 +02:00
row0undo.cc MDEV-32068 Some calls to buf_read_ahead_linear() seem to be useless 2023-12-05 12:31:29 +02:00
row0upd.cc Revert "MDEV-32964: Expect DB_INTERRUPTED from wsrep_row_upd_check_foreign_constraints" 2023-12-20 14:20:40 +01:00
row0vers.cc Merge 10.5 into 10.6 2023-09-19 10:47:26 +03:00