From 57e94b5824d14a43905853398bd08e91a005c199 Mon Sep 17 00:00:00 2001 From: Matthew Parkinson Date: Tue, 2 Jul 2019 15:38:48 +0100 Subject: [PATCH] Ensure id set on dummy deallocation. --- src/mem/alloc.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mem/alloc.h b/src/mem/alloc.h index aa210a0..42e58e9 100644 --- a/src/mem/alloc.h +++ b/src/mem/alloc.h @@ -837,10 +837,10 @@ namespace snmalloc { // Manufacture an allocation to prime the queue // Using an actual allocation removes a conditional of a critical path. - Remote* remote = + Remote* dummy = reinterpret_cast(alloc(MIN_ALLOC_SIZE)); - remote->set_target_id(id()); - message_queue().init(remote); + dummy->set_target_id(id()); + message_queue().init(dummy); } SNMALLOC_FAST_PATH void handle_dealloc_remote(Remote* p)