Skip to content

feat: introduce scope abstraction#318

Open
pollend wants to merge 2 commits intomasterfrom
feature/mod-mem-scope-api
Open

feat: introduce scope abstraction#318
pollend wants to merge 2 commits intomasterfrom
feature/mod-mem-scope-api

Conversation

@pollend
Copy link
Collaborator

@pollend pollend commented Mar 2, 2024

I want to uncouple the pool from the memory tracking. scopes works similarly in principle but they don't track the memory that is managed by the user.

The general gist is that a scope can take the ownership of a memory similar to a pool, but developer is required to call free on the memory from the pool and not Q_Free. this will introduce a double free where the user frees the memory as well as the scope.

the scope is just to track the lifecycle of some memory associated with some scope.

going forward I would like to omit the tracking from release builds. my plan is to have the tracking available for builds with debug symbols.

pollend added 2 commits March 2, 2024 14:20
Signed-off-by: Michael Pollind <mpollind@gmail.com>
Signed-off-by: Michael Pollind <mpollind@gmail.com>
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.

1 participant