Merge pull request #10417 from liamwhite/check-state

k_memory_block_manager: remove auditing calls
This commit is contained in:
Fernando S 2023-05-24 03:56:58 +02:00 committed by GitHub
commit 4ee4fdf78c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -144,14 +144,10 @@ private:
class KScopedMemoryBlockManagerAuditor { class KScopedMemoryBlockManagerAuditor {
public: public:
explicit KScopedMemoryBlockManagerAuditor(KMemoryBlockManager* m) : m_manager(m) { explicit KScopedMemoryBlockManagerAuditor(KMemoryBlockManager* m) : m_manager(m) {}
ASSERT(m_manager->CheckState());
}
explicit KScopedMemoryBlockManagerAuditor(KMemoryBlockManager& m) explicit KScopedMemoryBlockManagerAuditor(KMemoryBlockManager& m)
: KScopedMemoryBlockManagerAuditor(std::addressof(m)) {} : KScopedMemoryBlockManagerAuditor(std::addressof(m)) {}
~KScopedMemoryBlockManagerAuditor() { ~KScopedMemoryBlockManagerAuditor() = default;
ASSERT(m_manager->CheckState());
}
private: private:
KMemoryBlockManager* m_manager; KMemoryBlockManager* m_manager;