Ensure id set on dummy deallocation.

This commit is contained in:
Matthew Parkinson
2019-07-02 15:38:48 +01:00
parent 54879fbb4a
commit 57e94b5824

View File

@@ -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<Remote*>(alloc<YesZero>(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)