Browse Source
Bug#13418934 REMOVE HAVE_PURIFY DEPENDENCES FROM INNODB
Bug#13418934 REMOVE HAVE_PURIFY DEPENDENCES FROM INNODB
InnoDB: Remove HAVE_purify, UNIV_INIT_MEM_TO_ZERO, UNIV_SET_MEM_TO_ZERO. The compile-time setting HAVE_purify can mask potential bugs. It is being set in PB2 Valgrind runs. We should simply get rid of it, and replace it with UNIV_MEM_INVALID() to declare uninitialized memory as such in Valgrind-instrumented binaries. os_mem_alloc_large(), ut_malloc_low(): Remove the parameter set_to_zero. ut_malloc(): Define as a macro that invokes ut_malloc_low(). buf_pool_init(): Never initialize the buffer pool frames. All pages must be initialized before flushing them to disk. mem_heap_alloc(): Never initialize the allocated memory block. os_mem_alloc_nocache(), ut_test_malloc(): Unused function, remove. rb:813 approved by Jimmy Yangpull/843/head
15 changed files with 16 additions and 302 deletions
-
8storage/innobase/buf/buf0buf.c
-
4storage/innobase/include/mem0mem.ic
-
11storage/innobase/include/os0proc.h
-
17storage/innobase/include/univ.i
-
26storage/innobase/include/ut0mem.h
-
6storage/innobase/mem/mem0pool.c
-
33storage/innobase/os/os0proc.c
-
65storage/innobase/ut/ut0mem.c
-
5storage/innodb_plugin/buf/buf0buf.c
-
4storage/innodb_plugin/include/mem0mem.ic
-
17storage/innodb_plugin/include/univ.i
-
31storage/innodb_plugin/include/ut0mem.h
-
6storage/innodb_plugin/mem/mem0pool.c
-
3storage/innodb_plugin/os/os0proc.c
-
82storage/innodb_plugin/ut/ut0mem.c
Write
Preview
Loading…
Cancel
Save
Reference in new issue