Skip to content
Snippets Groups Projects
Commit 6cf8f07c authored by Florian Schmaus's avatar Florian Schmaus
Browse files

[MemoryManager] Fix stale reference to WsClQueue

The MemoryManager uses lib::adt::wsqueue::Default as work-stealing
queue implementation. The reference to WsClQueue would break if e.g.,
ws_queue_default=cl4, since the type would not exist.
parent 85b0451c
No related branches found
No related tags found
1 merge request!354Add more CL Queue implementations
......@@ -86,13 +86,13 @@ thread_local adt::BoundedBumpArray<void, WORKER_EXCLUSIVE_QUEUE_SIZE>
MemoryManager<T, WS_QUEUE_SIZE, WORKER_EXCLUSIVE_QUEUE_SIZE>::workerExclusiveQueue;
template <typename T, intptr_t WS_QUEUE_SIZE, size_t WORKER_EXCLUSIVE_QUEUE_SIZE>
thread_local adt::WsClQueue<void*, WS_QUEUE_SIZE>
thread_local lib::adt::wsqueue::Default<void*, WS_QUEUE_SIZE>
MemoryManager<T, WS_QUEUE_SIZE, WORKER_EXCLUSIVE_QUEUE_SIZE>::queue;
template <typename T, intptr_t WS_QUEUE_SIZE, size_t WORKER_EXCLUSIVE_QUEUE_SIZE>
MemoryManager<T, WS_QUEUE_SIZE, WORKER_EXCLUSIVE_QUEUE_SIZE>::MemoryManager(Runtime& runtime)
: workerCount(runtime.getWorkerCount()) {
queues = new adt::WsClQueue<void*, WS_QUEUE_SIZE>*[workerCount];
queues = new lib::adt::wsqueue::Default<void*, WS_QUEUE_SIZE>*[workerCount];
workerExclusiveQueues =
new adt::BoundedBumpArray<void, WORKER_EXCLUSIVE_QUEUE_SIZE>*[workerCount];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment