This will need more research, investigation, and testing but TCMalloc may not work well with ASan/MSan.
As soon as we enabled TCMalloc (
WT-7885) along with ASan, we faced issues and created WT-8194 but also WT-8195 which is related to MSan.
WT-8946, we found out that the Server team disables TCMalloc whenever ASan is enabled and we may want to align.
Before trying to fix more tickets that are caused by TCMalloc being used along with sanitizers, we should make sure they are compatible.
Acceptance Criteria (Definition of Done)
If they appear to be compatible, we can close this ticket and keep the code as it is. On the other hand, if they are not compatible, we should update our Evergreen file so we don't mix them and disable TCMalloc wherever the sanitizers are enabled.