@@ -83,7 +83,7 @@ struct IResearchMemoryManager : public IResourceManager {
8383public:
8484 virtual ~IResearchMemoryManager () = default ;
8585
86- virtual void Increase ([[maybe_unused]] uint64_t value) override {
86+ virtual void Increase ([[maybe_unused]] size_t value) override {
8787
8888 IRS_ASSERT (this != &kForbidden );
8989 IRS_ASSERT (value >= 0 );
@@ -105,15 +105,15 @@ struct IResearchMemoryManager : public IResourceManager {
105105 }
106106 }
107107
108- virtual void Decrease ([[maybe_unused]] uint64_t value) noexcept override {
108+ virtual void Decrease ([[maybe_unused]] size_t value) noexcept override {
109109 IRS_ASSERT (this != &kForbidden );
110110 IRS_ASSERT (value >= 0 );
111111 _current.fetch_sub (value, std::memory_order_relaxed);
112112 }
113113
114114 // NOTE: IResearchFeature owns and manages this memory limit.
115115 // That is why this method should only be used by IResearchFeature.
116- virtual void SetMemoryLimit (uint64_t memoryLimit) {
116+ virtual void SetMemoryLimit (size_t memoryLimit) {
117117 _memoryLimit.store (memoryLimit);
118118 }
119119
@@ -122,8 +122,8 @@ struct IResearchMemoryManager : public IResourceManager {
122122 // During IResearchFeature::validateOptions() this limit is set to a
123123 // percentage of either the total available physical memory or the value
124124 // of ARANGODB_OVERRIDE_DETECTED_TOTAL_MEMORY envvar if specified.
125- std::atomic<std:: uint64_t > _memoryLimit = { 0 };
126- std::atomic<std:: uint64_t > _current = { 0 };
125+ std::atomic<size_t > _memoryLimit = { 0 };
126+ std::atomic<size_t > _current = { 0 };
127127
128128 // Singleton
129129 static inline std::shared_ptr<IResearchMemoryManager> _instance;
0 commit comments