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

Change-Id: Ia94709e68b236c9460589963c0f09ec1f481c306


[ROCm/clr commit: 8e137e8702]
Этот коммит содержится в:
Ioannis Assiouras committed 2024-08-01 04:22:26 -04:00
1 родитель 92ddb8e242
Коммит 42e8d3c894
1 file changed
+1 -1
+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