Bug #92716 Reduce usage of THR_MALLOC
Submitted: 9 Oct 2018 7:34 Modified: 10 Oct 2018 13:41
Reporter: Jon Olav Hauglid Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:8.0.15 OS:Any
Assigned to: CPU Architecture:Any

[9 Oct 2018 7:34] Jon Olav Hauglid
Description:
THR_MALLOC is a MEM_ROOT double pointer allocated in thread local storage (TLS) that points to THD::mem_root.
We should reduce/remove usage of THR_MALLOC for two reasons:
1) It hides dependencies since TLS usage is not evident from argument lists etc.
2) Since the value depends on which thread is running, THR_MALLOC usage makes changing the threading model harder.

How to repeat:
n/a
[10 Oct 2018 13:41] Paul Dubois
Posted by developer:
 
Fixed in 8.0.15.

Code cleanup. No changelog entry needed.