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

Change-Id: Ia94709e68b236c9460589963c0f09ec1f481c306
Dieser Commit ist enthalten in:
Ioannis Assiouras
2024-07-31 16:43:32 +01:00
Ursprung b3153a5f41
Commit 8e137e8702
+1 -1
Datei anzeigen
@@ -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