)]}'
{
  "commit": "a9687e71e0f875f63f8c2639a77b8452e48bd2d6",
  "tree": "d9ed0c96ec5264241286a49332aeb2f5070486d7",
  "parents": [
    "d186e94fa73fc4bc683c3a31657bb1b5f9bcd8e2"
  ],
  "author": {
    "name": "birenroy",
    "email": "birenroy@google.com",
    "time": "Fri Nov 20 07:38:51 2026 -0800"
  },
  "committer": {
    "name": "Copybara-Service",
    "email": "copybara-worker@google.com",
    "time": "Fri Nov 20 07:41:35 2026 -0800"
  },
  "message": "Replaces slab bubble-sorting in `AbidingObjectPool` with quantized occupancy buckets.\n\nPreviously, `AbidingObjectPool::Deallocate` maintained `non_full_slabs_` in\ndescending `live_objects` order using a `while` loop over `SwapWithNext`. When\nthousands of slabs shared the same `live_objects` count, deallocating from a\nslab near the front of that tie-group chased pointers across up to thousands of\ndistinct slab pages, causing O(K * M) stalls during bulk backend deletions.\n\nThis change replaces `non_full_slabs_` and `SwapWithNext` with up to 16\noccupancy buckets indexed by\nthe number of live objects per slab and tracked via a `uint16_t` bitmask.\n* `Allocate` selects the fullest non-empty bucket in\nO(1) via `std::bit_width`.\n* `Deallocate` only moves a slab between bucket\nlists when its bucket index changes or when transitioning to or from\n`full_slabs_` or the spare empty slab reserve.\n\nThis increases the size of `AbidingObjectPool` by `16 * 8 \u003d 128` bytes.\n\nIn `BM_AbidingPool_MultiSlabDeallocateChurn` (312-byte objects in 8 KiB slabs,\ndeallocating 1 object per slab from the head of a 13-object tie-group),\neliminating the `SwapWithNext` loop avoids the O(K * M) stall:\n\nSlabs | Before (`SwapWithNext`) | After (16 buckets) | Speedup\n----- | ----------------------- | ------------------ | -------\n2,000 | 142.5 ms CPU            | 0.332 ms CPU       | ~429x\n5,000 | 1,205.9 ms CPU          | 1.106 ms CPU       | ~1,090x\n\nAlso adds unit tests for `kSlotsPerSlab \u003d\u003d 2` preallocation and\nlarge-slot-count bucketed churn in `abiding_object_pool_test.cc`, and\n`BM_AbidingPool_MultiSlabDeallocateChurn` in `abiding_object_pool_benchmark.cc`.\n\nProtected by data structure change, not feasible to protect; covered by existing tests.\n\nPiperOrigin-RevId: 1026469084\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "5205f868325ccfea15c1425e9528f2c30ddc3958",
      "old_mode": 33188,
      "old_path": "quiche/common/abiding_object_pool.h",
      "new_id": "cd7477d528f2444d43b509b4b36af27416c526f6",
      "new_mode": 33188,
      "new_path": "quiche/common/abiding_object_pool.h"
    },
    {
      "type": "modify",
      "old_id": "022bc9e90f207397f619dc90b8a78ec107f873d6",
      "old_mode": 33188,
      "old_path": "quiche/common/abiding_object_pool_test.cc",
      "new_id": "7dd6d2b9c923968da430616566d34f7c8293a2e3",
      "new_mode": 33188,
      "new_path": "quiche/common/abiding_object_pool_test.cc"
    }
  ]
}
