commit | 7bfd80eb74096fc09aafa086efc6f05779ccb710 | [log] [tgz] |
---|---|---|
author | Lokesh Gidra <lokeshgidra@google.com> | Mon Nov 13 21:39:26 2023 +0000 |
committer | Lokesh Gidra <lokeshgidra@google.com> | Mon Nov 13 21:57:11 2023 +0000 |
tree | 90c217f4b2d654170cf3b4ff77476429385c3cba | |
parent | ea1529568939cfc97122964375591965a47bedde [diff] |
Initialialize jhp's 'enabled_' field Otherwise, with jemalloc, which doesn't memset(0), we wrongly enable the sampler, which makes allocations slower due to smaller TLABs. Also move IsEnabled() to the header file as it is invoked quite a few times while allocating TLAB. Bug: 310655393 Test: manual testing on devices using jemalloc Change-Id: I63e819488fb980db95080fa17400712bd8efdbe5