-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Description
Description
Pointers abound in the software. It's often difficult to figure out who has ownership and who should be deleting. The only notes about ownership are in the comments; they may or may not reflect reality. We know that pointers are not being handled properly since long running executions of the program tend to gobble memory on laptops. I suspect that kqxhc doesn't see the issue because it has 64GB of RAM.
I've been reading up on unique pointers. Since we've fully adopted the C++11 standard, we should start to implement these where we can. These could help clear up these issues.
Development Platform
- Arch Linux
- Kernel : 4.9.11-1-ARCH
- Cmake : 3.6.3
- Gcc : 6.3.1 20170109
- gdb : 7.11.1
Work to be done
- Determine where the offending pointers are.
- Cleanup the code for better pointer management.
- Ensure that there's always a delete for every new.
- Ensure that we are not newing the same thing more than once, or that if we are we are deleting them.
- More to be determined later.
Acceptance Criteria
- The program is able to compile
- The program can scan large files without eating all the memory on systems with limited memory resources.
- The program is stable over long periods of time.