Commit 90d5d906 authored by Marko Mäkelä's avatar Marko Mäkelä

Merge 10.4 into 10.5

parents a85f81af b99fa1e7
......@@ -2257,7 +2257,18 @@ inline void buf_pool_t::resize()
ulint sum_freed = 0;
while (chunk < echunk) {
/* buf_LRU_block_free_non_file_page() invokes
MEM_NOACCESS() on any buf_pool.free blocks.
We must cancel the effect of that. In
MemorySanitizer, MEM_NOACCESS() is no-op, so
we must not do anything special for it here. */
#ifdef HAVE_valgrind
# if !__has_feature(memory_sanitizer)
MEM_MAKE_DEFINED(chunk->mem, chunk->mem_size());
# endif
#else
MEM_MAKE_ADDRESSABLE(chunk->mem, chunk->size);
#endif
buf_block_t* block = chunk->blocks;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment