)]}'
{
  "commit": "bb65b52c40f043ce21751c5f50620ba4cb075490",
  "tree": "7cc00370e1b54f9a4d7d7c7b200918ceb0491a04",
  "parents": [
    "e1228b8b45918ece1a00d68e5fc5e6a685ca59ee"
  ],
  "author": {
    "name": "Sebastian Ullrich",
    "email": "sebasti@nullri.ch",
    "time": "Thu Nov 26 14:35:40 2026 +0000"
  },
  "committer": {
    "name": "Sebastian Ullrich",
    "email": "sebasti@nullri.ch",
    "time": "Thu Nov 26 14:35:40 2026 +0000"
  },
  "message": "fix: make `lean_mark_persistent` safe for objects used by other threads\n\nThis PR fixes a race in `Runtime.markPersistent` on objects that other threads are using, which could revive such an object with a wrong reference count and lead to a use after free.\n\n`lean_mark_persistent` wrote a zero count into thread-shared objects with a plain store. A reference count adjustment that another thread had in flight then landed on top of the zero. For a thread-shared object it now atomically stores a count from the middle of the sticky range, where adjustments in flight cannot move it back out; such an object is never freed and its count is no longer adjusted, but it is not reported by `lean_is_persistent`. Objects owned by the current thread still get a zero count. The interpreter\u0027s symbol cache, which relied on persistent names having stable addresses, accepts all never-freed names.\n\nCo-Authored-By: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "2d5c74c9bae6aa098bdbfcedd11bc9a5fb0b5b9f",
      "old_mode": 33188,
      "old_path": "src/Init/System/IO.lean",
      "new_id": "90fcae545bff4ab05fea3dbc133a19be8cd58f7c",
      "new_mode": 33188,
      "new_path": "src/Init/System/IO.lean"
    },
    {
      "type": "modify",
      "old_id": "8e2856ba8d8ee81af972decee8b7ec7a32c2b889",
      "old_mode": 33188,
      "old_path": "src/library/ir_interpreter.cpp",
      "new_id": "1b41eaae37ae1e05725461a8c1082c68f4698b95",
      "new_mode": 33188,
      "new_path": "src/library/ir_interpreter.cpp"
    },
    {
      "type": "modify",
      "old_id": "780a9c660e271a5ecf3d95bda78f5880157158fe",
      "old_mode": 33188,
      "old_path": "src/runtime/object.cpp",
      "new_id": "11223a624ba856ceb0efdf3a7aab50cc17e8d8a4",
      "new_mode": 33188,
      "new_path": "src/runtime/object.cpp"
    }
  ]
}
