commit | 514a616fd434212815bdd49cc1e2786817395969 | [log] [tgz] |
---|---|---|
author | Nicolas Geoffray <ngeoffray@google.com> | Tue Nov 03 11:44:24 2015 +0000 |
committer | Nicolas Geoffray <ngeoffray@google.com> | Tue Nov 03 16:55:40 2015 +0000 |
tree | ad50e694d4525b4070c70bf9cf99dd3855762201 | |
parent | df6dc42ba2ca0fa43ba970ba2e60977422105f7e [diff] |
Fix broken handling of instrumentation lists. - We cannot copy before iterating, as entries might be deleted. - We cannot remove entries in the list, as mutators could be currently iterating over it. Solution in this change is to never remove list entries, but put null when a listener is removed. When adding a listener, we will either put it where there is a null slot, or at the end of the list if there is no null slot. Change-Id: Id94582fd971cd56bcb445caff64270d21987f700