|
|
@ -40,13 +40,13 @@ namespace dml { |
|
|
|
|
|
|
|
namespace dsacache { |
|
|
|
inline bool CheckFlag(const uint64_t value, const uint64_t flag) { |
|
|
|
return (value & ~flag) != 0ULL; |
|
|
|
return (value & flag) != 0; |
|
|
|
} |
|
|
|
inline uint64_t UnsetFlag(const uint64_t value, const uint64_t flag) { |
|
|
|
return value & ~flag; |
|
|
|
return value & (~flag); |
|
|
|
} |
|
|
|
inline uint64_t SetFlag(const uint64_t value, const uint64_t flag) { |
|
|
|
return value + flag; |
|
|
|
return value | flag; |
|
|
|
} |
|
|
|
|
|
|
|
constexpr uint64_t FLAG_WAIT_WEAK = 0b1ULL << 63; |
|
|
@ -723,7 +723,6 @@ inline void dsacache::CacheData::WaitOnCompletion() { |
|
|
|
// otherwise the cache will be set to valid now
|
|
|
|
|
|
|
|
if (result.status != dml::status_code::ok) { |
|
|
|
|
|
|
|
cache_->store(src_); |
|
|
|
numa_free(*incomplete_cache_, size_); |
|
|
|
delete_ = false; |
|
|
|