Revert "Restore null pointer check for better performance."
This reverts commit 388a04cdc1
. This
change was applied in the wrong spot and introduced an uninitialised
memory access.
This commit is contained in:
parent
01b4e87c04
commit
c9a4223dd9
@ -59,13 +59,7 @@ public:
|
||||
// && !defined(ASIO_NO_EXCEPTIONS)
|
||||
{
|
||||
for (int i = 0; i < max_mem_index; ++i)
|
||||
{
|
||||
// The following test for non-null pointers is technically redundant, but
|
||||
// it is significantly faster when using a tight io_context::poll() loop
|
||||
// in latency sensitive applications.
|
||||
if (reusable_memory_[i])
|
||||
reusable_memory_[i] = 0;
|
||||
}
|
||||
reusable_memory_[i] = 0;
|
||||
}
|
||||
|
||||
~thread_info_base()
|
||||
|
Loading…
Reference in New Issue
Block a user