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

enh/29/ds-zalloc-switch #29

Closed
jharwell opened this issue Jun 3, 2023 · 0 comments
Closed

enh/29/ds-zalloc-switch #29

jharwell opened this issue Jun 3, 2023 · 0 comments

Comments

@jharwell
Copy link
Owner

jharwell commented Jun 3, 2023

Sometimes you might want application-domain memory to be zeroed by RCSW as if it came from calloc(), and sometimes not, for performance reasons. This should be (a) a cmake configure which sets the default for all data structures, and (b) a flag which can be passed to each individual data structure to override the default behavior if there is a conflict.

jharwell added a commit that referenced this issue Nov 2, 2023
- Create single chokepoint where all malloc()/calloc() calls happens so that
  RCSW can cleanly/easily be built to not use malloc() if necessary.

- Exposed some VERY subtle dependencies and bugs (e.g., which modules rely on
  zeroed memory that they allocate and which don't)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant