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

Change-Id: Ia94709e68b236c9460589963c0f09ec1f481c306


[ROCm/clr commit: 8e137e8702]
Tá an tiomantas seo le fáil i:
Ioannis Assiouras tiomanta 2024-08-01 04:22:26 -04:00
1 tuismitheoir 92ddb8e242
tiomantas 42e8d3c894
1 comhad athraithe
+1 -1
+1 -1
Féach ar an gComhad
@@ -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