)]}'
{
  "commit": "b35bd7d552f80518ad90e81f592b73ee2ef736d7",
  "tree": "5e6e89287d05742cc65f54c10e4aa90d45c4522b",
  "parents": [
    "4f92e10cda142fd1f213e01a53ca687e38cddf22"
  ],
  "author": {
    "name": "Tom de Vries",
    "email": "tdevries@suse.de",
    "time": "Thu Jul 14 08:19:00 2022 +0200"
  },
  "committer": {
    "name": "Tom de Vries",
    "email": "tdevries@suse.de",
    "time": "Thu Jul 14 08:19:00 2022 +0200"
  },
  "message": "[gdb/symtab] Make per_cu-\u003eunit_type atomic\n\nWith gdb with -fsanitize\u003dthread and test-case gdb.ada/array_bounds.exp, I run\ninto a data race between:\n...\n  Read of size 1 at 0x7b2000025f0f by main thread:\n    #0 packed\u003cdwarf_unit_type, 1ul\u003e::operator dwarf_unit_type() const packed.h:54\n    #1 dwarf2_per_cu_data::set_unit_type(dwarf_unit_type) read.h:339\n...\nand:\n...\n  Previous write of size 1 at 0x7b2000025f0f by thread T3:\n    #0 dwarf2_per_cu_data::set_unit_type(dwarf_unit_type) read.h:341\n...\n\nFix this by making per_cu-\u003eunit_type atomic.\n\nTested on x86_64-linux.\n\nBug: https://sourceware.org/bugzilla/show_bug.cgi?id\u003d29286\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "fcf0cd70530ca4901201bc0dd5a9199acaf7f4d4",
      "old_mode": 33188,
      "old_path": "gdb/dwarf2/read.h",
      "new_id": "acbe298b31047fddbb0199680fb72602182ac9f0",
      "new_mode": 33188,
      "new_path": "gdb/dwarf2/read.h"
    }
  ]
}
