Details
-
Task
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Duplicate
-
None
-
None
-
None
Description
We want to be able to know how much memory a particular connection was allocated. And Limit this amount, if necessary.
Possible implementations (all in my_malloc()/my_free()):
- allocate 16 bytes more and store the size there
- use _msize (windows), malloc_usable_size (linux), malloc_size (mac os x). That's simpler, but is it portable enough for us? See also this thread
Attachments
Issue Links
- is duplicated by
-
MDEV-4011 per-thread memory usage statistics
- Closed