[PATCH 5/5] [gdb/symtab] Fix data race on per_cu->lang
Tom de Vries
tdevries@suse.de
Tue Jul 5 15:19:49 GMT 2022
On 7/4/22 20:30, Tom Tromey wrote:
>>>>>> "Tom" == Tom de Vries <tdevries@suse.de> writes:
> Tom> Fix this by guarding the write with a lock.
>
> I would rather we avoid locks. Ideally the existing exclusion mechanism
> should be made to work, but if that fails, perhaps we can use another
> atomic.
I gave a different approach a try: eliminating the field.
That seems to work reasonably well, apart from one specific usage that I
disabled (mentioned in commit message).
I'm not sure this is a good idea though, but I thought I could at least
post it. Currently testing.
Thanks,
- Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-gdb-symtab-Eliminate-per_cu-lang.patch
Type: text/x-patch
Size: 44427 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/gdb-patches/attachments/20220705/1cc180ec/attachment-0001.bin>
More information about the Gdb-patches
mailing list