[PATCH] correct GDBRegistrar thread-safety
Jim Kearney
jim.kearney at oracle.com
Mon Oct 14 09:32:24 PDT 2013
Please review the attached patch which is intended to fix
http://llvm.org/bugs/show_bug.cgi?id=15750. If it's acceptable, please
commit it.
It fixes two problems:
- use ManagedStatic<> to avoid initialization order problems
- lock when modifying singleton state; incorrect locking here caused
multi-threaded MCJIT to core due to races.
Thanks,
J. Kearney
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gdbreg.patch
Type: text/x-patch
Size: 2927 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20131014/fa01eeed/attachment.bin>
More information about the llvm-commits
mailing list