PerfMonComps: Avoid optimizing away memory allocation while testing malloc collection
PMonSD
performs a consistency check before enabling malloc
collection. In the newer gcc
/clang
versions, memory allocations are more aggressively optimized, causing this check to fail. This MR remedies it.