mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Merge branch '11.4' into 11.5
This commit is contained in:
@ -7287,6 +7287,7 @@ __attribute__((optimize("-O0")))
|
||||
#endif
|
||||
check_stack_overrun(THD *thd, long margin, uchar *buf __attribute__((unused)))
|
||||
{
|
||||
#ifndef __SANITIZE_ADDRESS__
|
||||
long stack_used;
|
||||
DBUG_ASSERT(thd == current_thd);
|
||||
if ((stack_used= available_stack_size(thd->thread_stack, &stack_used)) >=
|
||||
@ -7309,6 +7310,7 @@ check_stack_overrun(THD *thd, long margin, uchar *buf __attribute__((unused)))
|
||||
#ifndef DBUG_OFF
|
||||
max_stack_used= MY_MAX(max_stack_used, stack_used);
|
||||
#endif
|
||||
#endif /* __SANITIZE_ADDRESS__ */
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -8094,7 +8096,7 @@ TABLE_LIST *st_select_lex::add_table_to_list(THD *thd,
|
||||
}
|
||||
|
||||
bool has_alias_ptr= alias != nullptr;
|
||||
void *memregion= thd->calloc(sizeof(TABLE_LIST));
|
||||
void *memregion= thd->alloc(sizeof(TABLE_LIST));
|
||||
TABLE_LIST *ptr= new (memregion) TABLE_LIST(thd, db, fqtn, alias_str,
|
||||
has_alias_ptr, table, lock_type,
|
||||
mdl_type, table_options,
|
||||
|
Reference in New Issue
Block a user