Skip to content

WIP: Add initial implementation of memory leak check#175

Open
joaopapereira wants to merge 1 commit intocgreen-devs:masterfrom
joaopapereira:memory-accounting
Open

WIP: Add initial implementation of memory leak check#175
joaopapereira wants to merge 1 commit intocgreen-devs:masterfrom
joaopapereira:memory-accounting

Conversation

@joaopapereira
Copy link
Contributor

In this commit an initial implementation of the memory leak check functionality is added.

A new constraint to do the check check_memory_leak is now available Also replace all the memory management function with cgreen specific so that we can have some more control over the memory

This patch does not widely add the memory check to all tests.
If we want this to happen we need to call the new assertion directly.

TODO:
Add the assertion to the end of the test suite.
Ensure that the memory cache is cleaned per test
Works for C only at this point

This PR serves as an initial proof of concept of the memory leak implementation and it give us the basis to start adding this memory check to all tests as soon as we finish the todo's

Fixes #152

In this commit an initial implementation of the memory leak check
functionality is added.

A new constraint to do the check `check_memory_leak` is now available
Also replace all the memory management function with cgreen specific
so that we can have some more control over the memory

This patch does not widely add the memory check to all tests.
If we want this to happen we need to call the new assertion directly.

TODO:
Add the assertion to the end of the test suite.
Ensure that the memory cache is cleaned per test
@coveralls
Copy link

Coverage Status

Coverage increased (+0.03%) to 96.067% when pulling 6b77124 on joaopapereira:memory-accounting into 01dce29 on cgreen-devs:master.

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.

2 participants