)]}'
{
  "commit": "15d9da6817dfa38c3d1e678d3ee59e0bf641eafc",
  "tree": "7d72f818c729b53b1e463b1460d05a073001aacd",
  "parents": [
    "708e9e77773860bbb2ad9bb2d61b451de4b84e31"
  ],
  "author": {
    "name": "Wei-chung Hsu",
    "email": "weihsu@google.com",
    "time": "Thu Nov 19 19:17:52 2026 +0000"
  },
  "committer": {
    "name": "swiftshader-scoped@luci-project-accounts.iam.gserviceaccount.com",
    "email": "swiftshader-scoped@luci-project-accounts.iam.gserviceaccount.com",
    "time": "Mon Nov 23 13:03:04 2026 -0800"
  },
  "message": "Fix alignedMalloc NULL check and 32-bit Android BatchData pool size\n\nOn 32-bit ARM kernels (CONFIG_VMSPLIT_3G\u003dy), each process is limited to\na 3 GB virtual address space (0x00000000-0xbfffffff). When system_server\non 32-bit Android Cuttlefish initializes a software Vulkan renderer via\nSwiftShader (vulkan.pastel.so) for PowerManagerService ColorFade,\nsw::Renderer allocates a contiguous DrawCall::BatchData::Pool of 16\nbatches (0x047ce040 bytes, ~75.3 MB). Due to VMA fragmentation across\n~3,760 mappings in system_server, malloc(0x047ce054) can return NULL.\n\n1. In third_party/marl/src/memory.cpp (alignedMalloc), check for\n   allocation \u003d\u003d nullptr before computing aligned + size and calling\n   memcpy, preventing a SIGSEGV (SEGV_ACCERR) write fault at\n   0x0 + 0x047ce040. (Note: upstream github.com/google/marl was archived\n   read-only on 2026-04-27, so this fix is applied directly here.)\n2. In src/Device/Renderer.hpp, reduce MaxBatchCount from 16 to 4 on\n   32-bit Android builds (defined(__ANDROID__) \u0026\u0026 !defined(__LP64__)),\n   shrinking the contiguous BatchData::Pool allocation from 75.3 MB to\n   18.8 MB so it succeeds within the 3 GB 32-bit address space.\n\nBug: b/581958296\nTest: Trigger screen-off ColorFade in system_server on 32-bit ARM Cuttlefish\nChange-Id: I14b0ab6d5e3f4961fdb823b013566f4e9880359d\nReviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/77988\nKokoro-Result: kokoro \u003cnoreply+kokoro@google.com\u003e\nCommit-Queue: Shahbaz Youssefi \u003csyoussefi@google.com\u003e\nTested-by: Shahbaz Youssefi \u003csyoussefi@google.com\u003e\nReviewed-by: Shahbaz Youssefi \u003csyoussefi@google.com\u003e\nReviewed-by: Antonio Maiorano \u003camaiorano@google.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "284a6e9d0bd6a26c618f6590f365fe5302b96106",
      "old_mode": 33188,
      "old_path": "src/Device/Renderer.hpp",
      "new_id": "d115a033206a9cb78db23f24ac8d02a0fa182014",
      "new_mode": 33188,
      "new_path": "src/Device/Renderer.hpp"
    },
    {
      "type": "modify",
      "old_id": "f52be55990b36a704f01900417546d635955033c",
      "old_mode": 33188,
      "old_path": "third_party/marl/src/memory.cpp",
      "new_id": "803b80d5ad0fe7344f746919855c53fcbed442e5",
      "new_mode": 33188,
      "new_path": "third_party/marl/src/memory.cpp"
    }
  ]
}
