Simplify __malloc_initialized
authorSiddhesh Poyarekar <siddhesh@sourceware.org>
Thu, 22 Jul 2021 13:08:04 +0000 (18:38 +0530)
committerSiddhesh Poyarekar <siddhesh@sourceware.org>
Thu, 22 Jul 2021 13:08:04 +0000 (18:38 +0530)
commitcc35896ea3e4532919ec81b17f36299117debe79
tree8c8f6ebcd9774a5a48a689f9e639899a0050b7ab
parentc142eb253f3814f46527e9b37484041dd85702cf
Simplify __malloc_initialized

Now that mcheck no longer needs to check __malloc_initialized (and no
other third party hook can since the symbol is not exported), make the
variable boolean and static so that it is used strictly within malloc.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Tested-by: Carlos O'Donell <carlos@redhat.com>
include/malloc.h
malloc/arena.c
malloc/malloc.c