)]}' { "commit": "1c4f3c5ea0267e8ebc990ee67c09efa01cb59746", "tree": "d515f87144d043e91ec7c77c1f59ac4091fcfa07", "parents": [ "a5eb3dceaf8d4e3fafac0d947decae62d3028df1" ], "author": { "name": "Austin Clements", "email": "austin@google.com", "time": "Mon Apr 03 15:47:11 2017 -0400" }, "committer": { "name": "Austin Clements", "email": "austin@google.com", "time": "Fri Apr 21 17:41:59 2017 +0000" }, "message": "runtime: make gcSetTriggerRatio work at any time\n\nThis changes gcSetTriggerRatio so it can be called even during\nconcurrent mark or sweep. In this case, it will adjust the pacing of\nthe current phase, accounting for progress that has already been made.\n\nTo make this work for concurrent sweep, this introduces a \"basis\" for\nthe pagesSwept count, much like the basis we just introduced for\nheap_live. This lets gcSetTriggerRatio shift the basis to the current\nheap_live and pagesSwept and compute a slope from there to completion.\nThis avoids creating a discontinuity where, if the ratio has\nincreased, there has to be a flurry of sweep activity to catch up.\nInstead, this creates a continuous, piece-wise linear function as\nadjustments are made.\n\nFor #19076.\n\nChange-Id: Ibcd76aeeb81ff4814b00be7cbd3530b73bbdbba9\nReviewed-on: https://go-review.googlesource.com/39833\nRun-TryBot: Austin Clements \u003caustin@google.com\u003e\nTryBot-Result: Gobot Gobot \u003cgobot@golang.org\u003e\nReviewed-by: Rick Hudson \u003crlh@golang.org\u003e\n", "tree_diff": [ { "type": "modify", "old_id": "8cba9f72bb135c0412090cbf35ab5b5519f1cc85", "old_mode": 33188, "old_path": "src/runtime/mgc.go", "new_id": "8ec062af18f6dc100a5f96c3ebd0937f3850b810", "new_mode": 33188, "new_path": "src/runtime/mgc.go" }, { "type": "modify", "old_id": "8915b398cda086df2d34bdf66c32b7d8a6eed989", "old_mode": 33188, "old_path": "src/runtime/mgcsweep.go", "new_id": "102d734c4deb2bb15d1e0fa3ba4dd051daada17d", "new_mode": 33188, "new_path": "src/runtime/mgcsweep.go" }, { "type": "modify", "old_id": "643fc7c50214feb4a4968c876d9bbcda969fe8b0", "old_mode": 33188, "old_path": "src/runtime/mheap.go", "new_id": "c2d5b46223050d671daad70f26eab1d58d161a24", "new_mode": 33188, "new_path": "src/runtime/mheap.go" } ] }