diff --git a/projects/clr/rocclr/platform/object.hpp b/projects/clr/rocclr/platform/object.hpp index 73e167c2c7..c55225be27 100644 --- a/projects/clr/rocclr/platform/object.hpp +++ b/projects/clr/rocclr/platform/object.hpp @@ -260,7 +260,7 @@ private: }; std::atomic current_alloc_ = 0; //!< Current allocation, global index - size_t max_chunk_idx_ = 0; //!< Current max chunk index + std::atomic max_chunk_idx_ = 0; //!< Current max chunk index amd::Monitor chunk_access_; //!< Lock for the chunk list access std::set chunks_; //!< List of allocated memory chunks T* active_allocs_[kActiveAllocSize] = {}; //!< Active chunks for fast access