SWDEV-476460 - Fix for a race condition in SysmemPool::Alloc

Change-Id: Ia94709e68b236c9460589963c0f09ec1f481c306


[ROCm/clr commit: 8e137e8702]
Этот коммит содержится в:
Ioannis Assiouras
2024-07-31 16:43:32 +01:00
родитель 92ddb8e242
Коммит 42e8d3c894
+1 -1
Просмотреть файл
@@ -260,7 +260,7 @@ private:
};
std::atomic<uint64_t> current_alloc_ = 0; //!< Current allocation, global index
size_t max_chunk_idx_ = 0; //!< Current max chunk index
std::atomic<size_t> max_chunk_idx_ = 0; //!< Current max chunk index
amd::Monitor chunk_access_; //!< Lock for the chunk list access
std::set<AllocChunk*> chunks_; //!< List of allocated memory chunks
T* active_allocs_[kActiveAllocSize] = {}; //!< Active chunks for fast access