)]}'
{
  "commit": "a8fb4586e0cfce58abcb63f58d6b2bd261bfd1af",
  "tree": "c53e8def2dfab9b468e4525a7a98ff8525bc8a01",
  "parents": [
    "34008810e52628ae4a1ad52f53434bbf8a3485e4"
  ],
  "author": {
    "name": "Thomas Lively",
    "email": "tlively@google.com",
    "time": "Tue Dec 01 00:17:56 2026"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Tue Dec 01 00:17:56 2026"
  },
  "message": "[Support] Flush LLVM profiles on fatal exit (#9438)\n\nFatal::~Fatal terminates via _Exit to avoid running static destructors,\nwhich bypasses the atexit handlers registered by LLVM\u0027s instrumentation\nprofile runtime and drops profile data on fatal error paths.\n\nMove the exit path into a mutex-serialized Fatal::exit helper in\nsrc/support/utilities.cpp. When __LLVM_INSTR_PROFILE_GENERATE is\ndefined, Fatal::~Fatal passes the caller\u0027s __llvm_profile_write_file\nfunction pointer to Fatal::exit, which flushes the library\u0027s profile\nruntime and, if the function pointer is distinct, the caller\u0027s profile\nruntime as well. This flushes both runtimes in shared-library builds\nwhere the library and executables each link a separate hidden copy of\nthe profile runtime, while avoiding duplicate writes when both resolve\nto the same copy.\n\nAlso remove unused includes from src/support/utilities.h (\u003ccstdint\u003e,\n\u003ciostream\u003e, \u003cmemory\u003e, and \"support/bits.h\") and add the missing #include\n\u003ccstdint\u003e to src/support/string.h.",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "5d9da0e0cf0add779401576c767793d8c76dab56",
      "old_mode": 33188,
      "old_path": "src/support/string.h",
      "new_id": "9c066f0cde4fac41b7f9b32dbb3b451f6e9a2423",
      "new_mode": 33188,
      "new_path": "src/support/string.h"
    },
    {
      "type": "modify",
      "old_id": "f051a1871eb9893b16897584bdf6a8147c355e59",
      "old_mode": 33188,
      "old_path": "src/support/utilities.cpp",
      "new_id": "884e0723f75470f13ebbcc2309082190fe5ab058",
      "new_mode": 33188,
      "new_path": "src/support/utilities.cpp"
    },
    {
      "type": "modify",
      "old_id": "9397f033504c4ecf6e7280c5cb5802db11ff6b8d",
      "old_mode": 33188,
      "old_path": "src/support/utilities.h",
      "new_id": "08c6ee5a900af370948743a374230e0cc4017fe6",
      "new_mode": 33188,
      "new_path": "src/support/utilities.h"
    }
  ]
}
