From f3f23b5c4bdc669ad0af4a1c79bd70c40ed9c594 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marko=20M=C3=A4kel=C3=A4?= Date: Sun, 5 Jul 2020 16:31:34 +0300 Subject: [PATCH] One more ASAN/MSAN cleanup commit 484931325e7bcecddc6daf1a55c008ddd67497e4 included a workaround for a 10.5 merge issue that should now be properly addressed in commit ab4069909d1f8d0c4740b5bd90e1422ce1978187. buf_chunk_init(): Remove an unnecessary MEM_MAKE_ADDRESSABLE(). We might invoke MEM_UNDEFINED() here, but actually the allocated memory ought to be guaranteed to be zero-initialized. --- storage/innobase/buf/buf0buf.cc | 2 -- 1 file changed, 2 deletions(-) diff --git a/storage/innobase/buf/buf0buf.cc b/storage/innobase/buf/buf0buf.cc index f2594725391..88c4c7ba7fd 100644 --- a/storage/innobase/buf/buf0buf.cc +++ b/storage/innobase/buf/buf0buf.cc @@ -1622,8 +1622,6 @@ buf_chunk_init( return(NULL); } - MEM_MAKE_ADDRESSABLE(chunk->mem, chunk->mem_size()); - #ifdef HAVE_LIBNUMA if (srv_numa_interleave) { struct bitmask *numa_mems_allowed = numa_get_mems_allowed();