Commit b19f4306 authored by Misha Shneerson's avatar Misha Shneerson Committed by Facebook GitHub Bot

fix buffer overrun

Summary: (Note: this ignores all push blocking failures!)

Reviewed By: andriigrynenko

Differential Revision: D23005233

fbshipit-source-id: 4ea528505e06fec0af7841ccbd6d41eabe0de558
parent d6085636
......@@ -136,7 +136,7 @@ CPUThreadPoolExecutor::getQueueObserver(int8_t pri) {
return nullptr;
}
auto& slot = queueObservers_[static_cast<uint64_t>(pri)];
auto& slot = queueObservers_[static_cast<uint8_t>(pri)];
if (auto observer = slot.load(std::memory_order_acquire)) {
return observer;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment