)]}'
{
  "commit": "4fdb9185e314033b79f86fd5f8a0423b3ca813a6",
  "tree": "17bb25ebfd4760bcafd0f437bde8790c7d2609f1",
  "parents": [
    "8671ae2ba83f622aaef36371f9011ae81c6792c7"
  ],
  "author": {
    "name": "Hugo Lefeuvre",
    "email": "hugo.lefeuvre@scisemi.com",
    "time": "Wed May 15 05:02:40 2024 +0200"
  },
  "committer": {
    "name": "David Chisnall",
    "email": "davidchisnall@users.noreply.github.com",
    "time": "Tue May 21 13:36:41 2024 +0100"
  },
  "message": "Use `ssize_t` return value for `heap_quota_remaining` and `heap_claim`.\n\nIn both cases we need to be able to encode error codes.\n`heap_quota_remaining` already does that, casting -1 into `size_t` which\nis not intuitive to use.\n\nAddress this by using a `ssize_t` return value for both. Although this\nhalves the sizes that we can represent, this shouldn\u0027t matter in\npractice because we will never have a heap that is larger than a few GBs\nanyways (and that already would be very large).\n\nThe queue compartment is missing a return value check for `heap_claim`,\nleave that for later because this may require some rework in the\nfunction to gracefully handle errors.\n\nSigned-off-by: Hugo Lefeuvre \u003chugo.lefeuvre@scisemi.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "7185f866fa447339040aff5c686f40c198b838bf",
      "old_mode": 33188,
      "old_path": "benchmarks/allocation/alloc.cc",
      "new_id": "4f4165276d538b4ea48e36a8b2e48e1ce47e99ae",
      "new_mode": 33188,
      "new_path": "benchmarks/allocation/alloc.cc"
    },
    {
      "type": "modify",
      "old_id": "58b6ea192f174e3ac16fad023dcd0613830e8f97",
      "old_mode": 33188,
      "old_path": "sdk/core/allocator/main.cc",
      "new_id": "29a652b1b925fe0dbd036b6f20916cf116cb6f2e",
      "new_mode": 33188,
      "new_path": "sdk/core/allocator/main.cc"
    },
    {
      "type": "modify",
      "old_id": "6b2e069615aa0b7215d8640038e4a455d3efef6f",
      "old_mode": 33188,
      "old_path": "sdk/include/stdlib.h",
      "new_id": "d60e4e4ee027a40eed0da0b95a524088810634ad",
      "new_mode": 33188,
      "new_path": "sdk/include/stdlib.h"
    },
    {
      "type": "modify",
      "old_id": "e43876b035a919a26f339c738734678132c79565",
      "old_mode": 33188,
      "old_path": "sdk/lib/queue/queue_compartment.cc",
      "new_id": "96f484539ae819c874e7cd6b3aca4766c2fc7b83",
      "new_mode": 33188,
      "new_path": "sdk/lib/queue/queue_compartment.cc"
    },
    {
      "type": "modify",
      "old_id": "2a8c26a0c54af309b80d09b335fafcdd0bd172f8",
      "old_mode": 33188,
      "old_path": "tests/allocator-test.cc",
      "new_id": "c206f356bce2803cb10ebc9694a36d81770019f4",
      "new_mode": 33188,
      "new_path": "tests/allocator-test.cc"
    },
    {
      "type": "modify",
      "old_id": "3b1fd052124d1962fb6a7966ef2260b8ebcc675f",
      "old_mode": 33188,
      "old_path": "tests/queue-test.cc",
      "new_id": "5239f1900c4fadfe16bc3e92ed7b4fe60ae909ff",
      "new_mode": 33188,
      "new_path": "tests/queue-test.cc"
    }
  ]
}
