)]}'
{
  "commit": "91fc5f30b42a6c760c72aeca63c7926e2b0dad75",
  "tree": "67bf2aec3f22c8d4c212e55ad820c6ba01071542",
  "parents": [
    "00c70f90505ba11108ee784cb8facdc5ed698f66"
  ],
  "author": {
    "name": "jmmv",
    "email": "jmmv@google.com",
    "time": "Thu May 21 09:50:17 2020 -0700"
  },
  "committer": {
    "name": "Copybara-Service",
    "email": "copybara-worker@google.com",
    "time": "Thu May 21 09:51:32 2020 -0700"
  },
  "message": "Implement --shutdown_on_low_sys_mem for macOS.\n\nThis extends the ServerWatcherRunnable to recognize memory pressure events\non macOS to determine low memory conditions.  Once those arise, and if\n--shutdown_on_low_sys_mem has been enabled (which is still off by default),\nand the Bazel server has been idle for 5 minutes, it shuts down.\n\nTested: Ran \"sudo memory_pressure -S -l warn\" with an idle Bazel server\nand saw it shut itself down as expected.  Note that because this requires\nsudo, we can\u0027t easily test this automatically (same as why\nMemoryPressureCounterTest can\u0027t really verify anything).  I\u0027ve also been\nable to reproduce this with actual load by stressing my 16GB laptop with\ntwo concurrent and large Bazel builds, Chrome, a video stream, IntelliJ,\nAndroid Studio...\n\nPart of #7600.\n\nRELNOTES: None.\nPiperOrigin-RevId: 312687348\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "e6cd4eb7dbe4a9fe24c36b03a3f1f593e82e9eaa",
      "old_mode": 33188,
      "old_path": "src/main/java/com/google/devtools/build/lib/server/BUILD",
      "new_id": "379bf516f379dcac44cc12e0fcf7998dd8ec97df",
      "new_mode": 33188,
      "new_path": "src/main/java/com/google/devtools/build/lib/server/BUILD"
    },
    {
      "type": "modify",
      "old_id": "b896d9786a098fa8607d3f5345c52a51bef6bf56",
      "old_mode": 33188,
      "old_path": "src/main/java/com/google/devtools/build/lib/server/ServerWatcherRunnable.java",
      "new_id": "22887220c87b1fbc52ef30e4956465f42a5da370",
      "new_mode": 33188,
      "new_path": "src/main/java/com/google/devtools/build/lib/server/ServerWatcherRunnable.java"
    },
    {
      "type": "modify",
      "old_id": "2152c9388acde79d07af6fd2b512dabdd37291c4",
      "old_mode": 33188,
      "old_path": "src/test/java/com/google/devtools/build/lib/server/ServerWatcherRunnableTest.java",
      "new_id": "1d8a175476edb6672cad4cc6e5c069c7e0859099",
      "new_mode": 33188,
      "new_path": "src/test/java/com/google/devtools/build/lib/server/ServerWatcherRunnableTest.java"
    }
  ]
}
