diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2020-11-08 04:10:01 -0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2020-11-08 04:10:15 -0800 |
commit | d4820dac5e7608e24fba6d08cde9248b4c4b2928 (patch) | |
tree | e679864fec0c2c99baf9f1f2cab0ad3ac2f60666 /test-driver | |
parent | a907d563de51b5288a7acae8df805428cc1b960d (diff) | |
download | gdb-d4820dac5e7608e24fba6d08cde9248b4c4b2928.zip gdb-d4820dac5e7608e24fba6d08cde9248b4c4b2928.tar.gz gdb-d4820dac5e7608e24fba6d08cde9248b4c4b2928.tar.bz2 |
gold: Avoid sharing Plugin_list::iterator
class Plugin_manager has
// A pointer to the current plugin. Used while loading plugins.
Plugin_list::iterator current_;
The same iterator is shared by all threads. It is OK to use it to load
plugins since only one thread loads plugins. Avoid sharing Plugin_list
iterator in all other cases.
PR gold/26200
* plugin.cc (Plugin_manager::claim_file): Don't share Plugin_list
iterator.
(Plugin_manager::all_symbols_read): Likewise.
(Plugin_manager::cleanup): Likewise.
Diffstat (limited to 'test-driver')
0 files changed, 0 insertions, 0 deletions