mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-08-25 16:43:33 +03:00
Initialize deferred_work_generated
As the code evolves, some code paths that have previously assigned deferred_work_generated may cease being reached. This would leave the value uninitialized. This change initializes the value for safety.
This commit is contained in:
parent
912324a1ac
commit
c9ebff0fd6
9 changed files with 23 additions and 40 deletions
|
|
@ -88,7 +88,7 @@ static void *
|
|||
do_alloc_free_purge(void *arg) {
|
||||
test_data_t *test_data = (test_data_t *)arg;
|
||||
for (int i = 0; i < 10 * 1000; i++) {
|
||||
bool deferred_work_generated;
|
||||
bool deferred_work_generated = false;
|
||||
edata_t *edata = pa_alloc(TSDN_NULL, &test_data->shard, PAGE,
|
||||
PAGE, /* slab */ false, /* szind */ 0, /* zero */ false,
|
||||
/* guarded */ false, &deferred_work_generated);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue