-
-
Notifications
You must be signed in to change notification settings - Fork 730
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
内存分配错误 #267
Comments
Title: Memory allocation error Describe the problemCalling Expected resultsAllocate memory normally error message
Related environmentwindows msvc but I feel it has little to do with the system and compiler xmake.lua
main.cpp
|
看了代码
是因为这句,计算diff的时候转到u8了,对齐到512的话超出范围了 |
搞这么大对齐干嘛。。 |
Why do we have such a big alignment? . |
我想用tbox作为c++的memory_resource的上游,然后vector resize几次以后就这样的。。。 |
描述问题
调用
tb_align_malloc(2104, 512);
会有断言错误:期待的结果
正常分配内存
错误信息
相关环境
windows msvc 但我感觉跟系统和编译器关系不大
xmake.lua
main.cpp
The text was updated successfully, but these errors were encountered: