diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2010-06-22 15:28:29 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2010-06-22 15:28:29 +0000 |
commit | 53a61dc531d19ff4576e4933f96da6478d417b36 (patch) | |
tree | e3bad5543f1562855ab17d369b0ecad87dd565dd /llvm/lib/CodeGen/MachineBasicBlock.cpp | |
parent | 3986af0c5a09d7daa9b4dad537832cc627ef4c2b (diff) | |
download | llvm-53a61dc531d19ff4576e4933f96da6478d417b36.zip llvm-53a61dc531d19ff4576e4933f96da6478d417b36.tar.gz llvm-53a61dc531d19ff4576e4933f96da6478d417b36.tar.bz2 |
Ensure GetDemangledName's thread safety by making the demangle buffer thread specific.
I'm not sure when multiple threads enter this method but a race-condition
causing a crash in malloc can be reproduced with this little script:
echo file $(which lldb) > cmd
echo "run\nbreak set -n main\nrun\nexit" >> cmd
lldb -s cmd
It may need a few runs before it crashes though.
llvm-svn: 106544
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
0 files changed, 0 insertions, 0 deletions