mirror of
https://github.com/GrapheneOS/hardened_malloc.git
synced 2025-04-19 22:10:19 +02:00
remove usage of ATOMIC_VAR_INIT
This was never truly required in practice and has been officially obsoleted in C17.
This commit is contained in:
parent
65a7014b48
commit
3db3e167ed
1 changed files with 1 additions and 3 deletions
4
malloc.c
4
malloc.c
|
@ -44,9 +44,7 @@ static union {
|
||||||
atomic_bool initialized;
|
atomic_bool initialized;
|
||||||
};
|
};
|
||||||
char padding[PAGE_SIZE];
|
char padding[PAGE_SIZE];
|
||||||
} ro __attribute__((aligned(PAGE_SIZE))) = {
|
} ro __attribute__((aligned(PAGE_SIZE)));
|
||||||
.initialized = ATOMIC_VAR_INIT(false)
|
|
||||||
};
|
|
||||||
|
|
||||||
struct slab_metadata {
|
struct slab_metadata {
|
||||||
u64 bitmap[4];
|
u64 bitmap[4];
|
||||||
|
|
Loading…
Add table
Reference in a new issue