Question about mono_array_new #112855
Unanswered
ffbh123456
asked this question in
Q&A
Replies: 1 comment
-
Mono's GC does a conservative scan to find objects. Once you have registered your thread with To make a persist storage for latter use, you need to report the storage of the pointer with GC will take care of releasing it and you can't do it manually. See https://www.mono-project.com/docs/advanced/garbage-collector/sgen/#stopping-the-world and https://www.mono-project.com/docs/advanced/garbage-collector/sgen/#roots |
Beta Was this translation helpful? Give feedback.
0 replies
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
-
What is the lifetime of the array created using mono_array_new? How can I ensure it persists for later use, and how can I manually release the memory when it's no longer needed?
Any help would be appreciated, thanks!
Beta Was this translation helpful? Give feedback.
All reactions