zeroing BitMemoryRegion buffer.
WriteMethods use ForMethodBitmapHotnessFlags to store bit, But it may
not store bit on some conditions.
For scudo in Android S zeroing heap is by default. so it works normally.
But if MALLOC_ZERO_CONTENTS is false or using jemalloc allocator,
the heap may filled with dirty data. so we should zero BitmayRegion
buffer.
Test: malloc_svelte target
run cts -m CtsDexMetadataHostTestCases -t
com.android.cts.dexmetadata.InstallDexMetadataHostTest#testProfileSnapshotAfterInstall
Bug: 201627008
Change-Id: I92aa4dffd6bb5ba51f515c9bea4837f2d4cbf706
Signed-off-by: liuhailong <liuhailong@oppo.com>
Signed-off-by: xieliujie <xieliujie@oppo.com>
1 file changed