Override nni_alloc and nni_free #1830
Answered
by
gdamore
sylvain-iRacing
asked this question in
Q&A
-
Is there a way to override nni_alloc and nni_free? I cannot find any hook to redirect them to the application allocators. Redefining them is not an option due to linking errors by doing so. |
Beta Was this translation helpful? Give feedback.
Answered by
gdamore
May 12, 2024
Replies: 1 comment
-
Not directly. There is a platform layer, and on POSIX they sit on top of malloc and free, so if you have weak bindings along with a shared library shim, you might be able to override that. I'd be willing to consider a pluggable allocator. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
gdamore
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Not directly. There is a platform layer, and on POSIX they sit on top of malloc and free, so if you have weak bindings along with a shared library shim, you might be able to override that.
I'd be willing to consider a pluggable allocator.