mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-02 11:57:17 +03:00
Replace ctl mallctl macros with helper functions
The READ/WRITE/READONLY/WRITEONLY/VERIFY_READ/ASSURED_WRITE/MIB_UNSIGNED/ NEITHER_READ_NOR_WRITE/READ_XOR_WRITE macros hid control flow (goto label_return) inside the mallctl handlers. Convert them to memcpy-based helper functions. Add error-path tests for the converted handlers and direct unit tests for the helpers
This commit is contained in:
parent
07618496fc
commit
4e903a0a32