-
Notifications
You must be signed in to change notification settings - Fork 495
DataWriter doesn't remove unregistered instances #3684
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
Conversation
cb779a9
to
c10703e
Compare
c10703e
to
fa655aa
Compare
Any explicit unit test possible for this? |
Problem ------- Entries in the maps of DataWriterImpl_t and WriteDataContainer correspond to instances. Unregistering an instance should remove from these maps to prevent a memory leak. Solution -------- Remove from these maps when instances are unregistered.
fa655aa
to
33092fe
Compare
Possible yes. However, I think it's going to take a serious refactoring of DataWriterImpl_T, DataWriterImpl, WriteDataContainer, and the associated transport framework to write it as a unit test and not an integration test. |
FooTest3_0 is not exactly a unit test, but it will provide coverage of these code paths |
DataWriter doesn't remove unregistered instances (cherry picked from commit 91fb793) # Conflicts: # dds/DCPS/DataWriterImpl_T.h
Problem
Entries in the maps of DataWriterImpl_t and WriteDataContainer
correspond to instances. Unregistering an instance should remove from
these maps to prevent a memory leak.
Solution
Remove from these maps when instances are unregistered.