)]}'
{
  "commit": "032c0482572d71502b9c32e420956dc67b159bfb",
  "tree": "c34ae7519529b3aa9047657e369e1f773f3a293d",
  "parents": [
    "d1cbe4fe0ecf25b6bd8e26c7cb2a98e32d5fc896"
  ],
  "author": {
    "name": "Dmitry Vyukov",
    "email": "dvyukov@google.com",
    "time": "Tue Nov 24 10:05:12 2026 -0800"
  },
  "committer": {
    "name": "Copybara-Service",
    "email": "copybara-worker@google.com",
    "time": "Fri Nov 27 03:34:13 2026 -0800"
  },
  "message": "Reduce /proc/self/maps re-reads on unknown addresses in Symbolize.\n\n`Symbolizer::FindObjFile()` previously cleared `addr_map_` after both iterations\nof its lookup loop, causing two `/proc/self/maps` reads on an unmapped address\nand leaving `addr_map_` empty so the next `absl::Symbolize()` call (even on a\nvalid address) had to re-read `/proc/self/maps` and re-open ELF binaries.\n\n1. Fast-reject particular invalid addresses that cannot live in a user-space ELF\n   mapping or vDSO — `\u003c 4096` (the zeroth page: `nullptr` and near-null values)\n   and `(addr \u003e\u003e 56) !\u003d 0` on 64-bit Linux architectures where user-space\n   virtual addresses fit in 56 bits (`x86_64`, `aarch64`, `powerpc64`,\n   `riscv64`) — avoiding `/proc/self/maps` invalidation and vDSO scanning\n   entirely for those addresses.\n2. When `/proc/self/maps` is freshly read inside `FindObjFile()` and the lookup\n   still misses, keep the refreshed `addr_map_` cached instead of clearing it on\n   exit.\n\nNote: this eliminates `/proc/self/maps` re-reads only for the fast-rejected\ninvalid addresses above, not for all unknown addresses. Other unmapped\nuser-space addresses (e.g. JIT/anonymous code, non-executable data/stack\naddresses, or unmapped pointers in the valid user-space range) still miss in\nthe cached `addr_map_`, call `ClearAddrMap()` (closing cached ELF file\ndescriptors), and trigger one `/proc/self/maps` re-read per call (down from\ntwo, while leaving `addr_map_` populated afterward; the next uncached valid\nlookup still re-opens its ELF file).\n\nOn a microbenchmark (`BM_SymbolizeUnknown`), latency drops from ~235 us/call to\n~5 ns/call for `nullptr` and `~uintptr_t{0}`, and from ~237 us/call to\n~118 us/call (~2x faster) for a slow-path unmapped stack address.\n\nPiperOrigin-RevId: 1029144384\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "265133a41a541d276fa483102a5f0794eebd0ede",
      "old_mode": 33188,
      "old_path": "absl/debugging/BUILD.bazel",
      "new_id": "9cfd5a5fe9acd46c488f81fe7ba6c69747c8d551",
      "new_mode": 33188,
      "new_path": "absl/debugging/BUILD.bazel"
    },
    {
      "type": "modify",
      "old_id": "247e82f2973ffe1a397c8c80cbbc3d77b16b4857",
      "old_mode": 33188,
      "old_path": "absl/debugging/CMakeLists.txt",
      "new_id": "868d7df6554eefdec28cca020e4bf4ee7cb2b8e3",
      "new_mode": 33188,
      "new_path": "absl/debugging/CMakeLists.txt"
    },
    {
      "type": "modify",
      "old_id": "07b116703bd542af0243ad38a9b52caa46f9eb1c",
      "old_mode": 33188,
      "old_path": "absl/debugging/symbolize_elf.inc",
      "new_id": "7b8414ec7cdc7666ec1869d1fcebdceb1eed5917",
      "new_mode": 33188,
      "new_path": "absl/debugging/symbolize_elf.inc"
    },
    {
      "type": "modify",
      "old_id": "87cdf6ed844c59bd4a57a4ded4be0bf2d07c5160",
      "old_mode": 33188,
      "old_path": "absl/debugging/symbolize_test.cc",
      "new_id": "2eb6ce62178139f869572c0c498b2a004349f06a",
      "new_mode": 33188,
      "new_path": "absl/debugging/symbolize_test.cc"
    }
  ]
}
