Skip to content
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

[CRT runtime] Fix memset of memory pool in PageMemoryManagerCreate #12437

Merged
merged 1 commit into from
Aug 18, 2022

Conversation

hugy718
Copy link
Contributor

@hugy718 hugy718 commented Aug 15, 2022

Fix the memset during creation of memory manager. It should clear the whole memory pool, otherwise the next invocation will create a manager with some attributes using old values.

I found this issue when trying to call tvm_runtime_create the second time led to error. (my codes are similar to apps/bundle_deploy/bundle_static.c). Internal checking would fail due to manager attributes being only partially cleared.

cc @areusch

@github-actions github-actions bot requested a review from areusch August 15, 2022 08:26
@kparzysz-quic kparzysz-quic merged commit da7675c into apache:main Aug 18, 2022
@areusch
Copy link
Contributor

areusch commented Aug 18, 2022

thanks @hugy718 !

xinetzone pushed a commit to daobook/tvm that referenced this pull request Nov 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants