mirror of
https://github.com/MariaDB/server.git
synced 2026-04-20 15:25:33 +02:00
Check how much stack we got; Needed to be able to run crash-me
sql-bench/limits/mysql.cfg: Updated results
This commit is contained in:
parent
133ed0bf6f
commit
0cf63e826a
2 changed files with 6507 additions and 25 deletions
File diff suppressed because it is too large
Load diff
|
|
@ -2130,7 +2130,17 @@ int main(int argc, char **argv)
|
|||
(void) pthread_attr_setdetachstate(&connection_attrib,
|
||||
PTHREAD_CREATE_DETACHED);
|
||||
pthread_attr_setstacksize(&connection_attrib,thread_stack);
|
||||
|
||||
{
|
||||
/* Retrieve used stack size; Needed for checking stack overflows */
|
||||
size_t stack_size;
|
||||
pthread_attr_getstacksize(&connection_attrib, &stack_size);
|
||||
if (global_system_variables.log_warnings && stack_size != thread_stack)
|
||||
{
|
||||
sql_print_error("Warning: Asked for %ld thread stack, but got %ld",
|
||||
thread_stack, stack_size);
|
||||
thread_stack= stack_size;
|
||||
}
|
||||
}
|
||||
if (!(opt_specialflag & SPECIAL_NO_PRIOR))
|
||||
my_pthread_attr_setprio(&connection_attrib,WAIT_PRIOR);
|
||||
pthread_attr_setscope(&connection_attrib, PTHREAD_SCOPE_SYSTEM);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue