)]}'
{
  "commit": "03f98ec855ba2cddafcff3b199b3dc87a89dc98d",
  "tree": "3491bccd4b1405aa06162077b5437df4f03d20bb",
  "parents": [
    "8af51fe6c682f63ac0aaa84130454b5ed28a5aee"
  ],
  "author": {
    "name": "lberki",
    "email": "lberki@google.com",
    "time": "Sun Nov 22 23:27:59 2026 -0800"
  },
  "committer": {
    "name": "Copybara-Service",
    "email": "copybara-worker@google.com",
    "time": "Sun Nov 22 23:29:05 2026 -0800"
  },
  "message": "Split the propagation of transitive analysis node and action counts out of SkyframeTransitiveTargetCounter into TransitiveClosureCounter.\n\nThis is so that the same propagation can count graphs that are not read from Skyframe, e.g. one recorded during analysis when Skyframe doesn\u0027t keep the edges of done nodes (in a follow-up change).\n\n- TransitiveClosureCounter: parallel Kahn\u0027s algorithm on a DAG with dense integer node IDs behind a small Graph interface. It propagates a bitmask of the roots that reach each node, then adds the node to the counts of every root in its mask. Roots are counted in several passes if their bitmasks don\u0027t fit into a memory budget\n- SkyframeTransitiveTargetCounter only does the discovery: a parallel pass that assigns dense IDs to the relevant nodes in an ObjectToIntMap and keeps the action count, in-degree and Skyframe node entry of each node in chunked arrays. Dependencies are not copied anymore, they are read from Skyframe again during propagation\n- ForkJoinUtil (in lib/concurrent) runs work in a dedicated fork/join pool and shuts it down afterwards\n- Counts are now TransitiveClosureCounter.Counts(nodes, actions)\n- TransitiveClosureCounter fails if it did not visit every node, i.e. if the graph has a cycle or inconsistent in-degrees, and if maxMaskBytes is not below 512 MiB\n- ObjectToIntMap.getUnsynchronized() looks keys up without taking the lock of the shard. Propagation uses it, because the key to ID map is not modified after discovery\n- SkyframeTransitiveTargetCounter and TransitiveClosureCounter are in their own target, //third_party/bazel/src/main/java/com/google/devtools/build/lib/skyframe:transitive_target_counter, instead of skyframe_core\n\nRELNOTES: None.\nPiperOrigin-RevId: 1027916672\nChange-Id: Id44400798fbf0b162ba1f922a8c0712c9f31d896\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "dd2d7b4ce3618d21407002a6fa5846298bd77792",
      "old_mode": 33188,
      "old_path": "src/main/java/com/google/devtools/build/lib/buildtool/BUILD",
      "new_id": "6d1489983a606d497e1eafa6a5a47248097a2011",
      "new_mode": 33188,
      "new_path": "src/main/java/com/google/devtools/build/lib/buildtool/BUILD"
    },
    {
      "type": "modify",
      "old_id": "9a3f6c472520c5bc5da9c72b88dc80ff6117be43",
      "old_mode": 33188,
      "old_path": "src/main/java/com/google/devtools/build/lib/collect/ObjectToIntMap.java",
      "new_id": "5774ac53e683d2ac0b6029bfd6bc0f5d3a6a2960",
      "new_mode": 33188,
      "new_path": "src/main/java/com/google/devtools/build/lib/collect/ObjectToIntMap.java"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "da335aa43b067daca8114d317b9a9543e800330a",
      "new_mode": 33188,
      "new_path": "src/main/java/com/google/devtools/build/lib/concurrent/ForkJoinUtil.java"
    },
    {
      "type": "modify",
      "old_id": "2fcc54bf29eded7273ebc6380a265a5fee56ffa5",
      "old_mode": 33188,
      "old_path": "src/main/java/com/google/devtools/build/lib/skyframe/BUILD",
      "new_id": "de9b628da9ca91b10fbac938b8a6146201bc1092",
      "new_mode": 33188,
      "new_path": "src/main/java/com/google/devtools/build/lib/skyframe/BUILD"
    },
    {
      "type": "modify",
      "old_id": "5026f79decc616e32b39cb3a8eda5dd8d450900f",
      "old_mode": 33188,
      "old_path": "src/main/java/com/google/devtools/build/lib/skyframe/SkyframeTransitiveTargetCounter.java",
      "new_id": "99f02fb8fadbb2f6df4b1fa28c18cdf7f616aca1",
      "new_mode": 33188,
      "new_path": "src/main/java/com/google/devtools/build/lib/skyframe/SkyframeTransitiveTargetCounter.java"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "d0a87fb9379b062f5e91b30a7c25ccb1cd6f3d4d",
      "new_mode": 33188,
      "new_path": "src/main/java/com/google/devtools/build/lib/skyframe/TransitiveClosureCounter.java"
    },
    {
      "type": "modify",
      "old_id": "db41f620e3f49e1c255b3e6ea7ff01c783b0d94d",
      "old_mode": 33188,
      "old_path": "src/test/java/com/google/devtools/build/lib/collect/ObjectToIntMapTest.java",
      "new_id": "424c593c157291810c1f7bb786e3f111e931edf3",
      "new_mode": 33188,
      "new_path": "src/test/java/com/google/devtools/build/lib/collect/ObjectToIntMapTest.java"
    },
    {
      "type": "modify",
      "old_id": "330e78017be7491d896e4502a8c60eecfd429708",
      "old_mode": 33188,
      "old_path": "src/test/java/com/google/devtools/build/lib/skyframe/BUILD",
      "new_id": "987172a3ce58936b806b8784e37f2e3e99531a5f",
      "new_mode": 33188,
      "new_path": "src/test/java/com/google/devtools/build/lib/skyframe/BUILD"
    },
    {
      "type": "modify",
      "old_id": "59f800d70e68759ad46eb34e0c2221adbe5eb458",
      "old_mode": 33188,
      "old_path": "src/test/java/com/google/devtools/build/lib/skyframe/SkyframeTransitiveTargetCounterTest.java",
      "new_id": "39c199ca86fe152a55627abc376e1477a455db5b",
      "new_mode": 33188,
      "new_path": "src/test/java/com/google/devtools/build/lib/skyframe/SkyframeTransitiveTargetCounterTest.java"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "6f392c9b243315a6df07b48b2f82e2e38a20fde2",
      "new_mode": 33188,
      "new_path": "src/test/java/com/google/devtools/build/lib/skyframe/TransitiveClosureCounterTest.java"
    }
  ]
}
