提交 85c1e3aa 编写于 作者: H Haojun Liao

refactor: add an assert.

上级 b6199d8d
......@@ -352,6 +352,8 @@ void* taosMemoryMallocAlign(uint32_t alignment, int64_t size) {
#else
#if defined(LINUX)
void* p = memalign(alignment, size);
ASSERT((((uint64_t)p) & (alignment - 1)) == 0x0);
return p;
#else
return taosMemoryMalloc(size);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册