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:
Christopher Kohlhoff 2020-08-11 09:51:03 +10:00
parent 01b4e87c04
commit c9a4223dd9

View File

@ -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()