summaryrefslogtreecommitdiff
path: root/compiler/optimizing/graph_visualizer.cc
diff options
context:
space:
mode:
authorNicolas Geoffray <ngeoffray@google.com>2015-11-03 11:44:24 +0000
committerNicolas Geoffray <ngeoffray@google.com>2015-11-03 16:55:40 +0000
commit514a616fd434212815bdd49cc1e2786817395969 (patch)
treead50e694d4525b4070c70bf9cf99dd3855762201 /compiler/optimizing/graph_visualizer.cc
parentdf6dc42ba2ca0fa43ba970ba2e60977422105f7e (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
Diffstat (limited to 'compiler/optimizing/graph_visualizer.cc')
0 files changed, 0 insertions, 0 deletions