[go] runtime/debug: add SetMaxHeap API

910 views
Skip to first unread message

Austin Clements (Gerrit)

unread,
Jun 26, 2017, 3:17:13 PM6/26/17
to Rick Hudson, Ian Lance Taylor, Austin Clements, golang-co...@googlegroups.com

Austin Clements would like Rick Hudson to review this change.

View Change

runtime/debug: add SetMaxHeap API

DO NOT SUBMIT. This is an experiment to get some experience with the
API and figure out if this is even a reasonable primitive. It needs
tests. The implementation is complete, but there are some questions
about the API in the code.

This adds an API to set a soft limit on the heap size. This augments
the existing GOGC-based GC policy by using the lower of the
GOGC-computed GC target and the heap limit.

When the garbage collector is bounded by the heap limit, it can no
longer amortize the cost of garbage collection against the cost of
growing the heap. Hence, callers of this API are required to register
for notifications of when the garbage collector is under pressure and
are strongly encouraged to use this signal to shed load.

Updates #16843.

Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
---
M src/runtime/debug/garbage.go
M src/runtime/mgc.go
M src/runtime/mheap.go
M src/runtime/mstats.go
4 files changed, 198 insertions(+), 12 deletions(-)

diff --git a/src/runtime/debug/garbage.go b/src/runtime/debug/garbage.go
index 1c83656..fa3bc9e 100644
--- a/src/runtime/debug/garbage.go
+++ b/src/runtime/debug/garbage.go
@@ -167,3 +167,110 @@
// If SetTraceback is called with a level lower than that of the
// environment variable, the call is ignored.
func SetTraceback(level string)
+
+// TODO: Figure out how to describe this under the current name or
+// rename it to GCPolicy: "GCPolicy reports the garbage collector's
+// policy for controlling the heap size."
+type GCPressure struct {
+ // GCPercent is the current value of GOGC, as set by the GOGC
+ // environment variable or SetGCPercent.
+ //
+ // If GC is disabled, this will be -1.
+ GCPercent int
+
+ // MaxHeapBytes is the current soft heap limit set by
+ // SetMaxHeap, in bytes.
+ //
+ // If there is no heap limit set, this will be ^uintptr(0).
+ MaxHeapBytes uintptr
+
+ // EffectiveGCPercent is the heap growth allowed when
+ // accounting for both GCPercent and MaxHeapBytes.
+ //
+ // This value is percentage with the same interpretation as
+ // GCPercent.
+ //
+ // If this is equal to GCPercent, it means heap growth during
+ // the current garbage collection cycle will not exceed
+ // MaxHeapBytes. Otherwise, this will be less than GCPercent,
+ // indicating the garbage collector has to run more frequently
+ // to keep the heap under MaxHeapBytes.
+ //
+ // If this is less than GCPercent, the application should
+ // generally shed load and reduce its live heap size.
+ EffectiveGCPercent int
+}
+
+// SetMaxHeap sets a soft limit on the size of the Go heap and returns
+// the previous setting. By default, there is no limit.
+//
+// If a max heap is set, the garbage collector will endeavor to keep
+// the heap size under the specified size, even if this is lower than
+// would normally be determined by GOGC (see SetGCPercent).
+//
+// The garbage collector will send an up-to-date GCPressure value to
+// the notify channel whenever the value of any of the fields in
+// GCPressure changes.
+//
+// The application is strongly encouraged to use the GCPressure
+// notification to shed load and reduce its live heap size when
+// EffectiveGCPercent drops below GCPercent. Setting a maximum heap
+// size limits the garbage collector's ability to amortize the cost of
+// garbage collection when the heap reaches this limit. This is
+// particularly important in request-processing systems, where
+// increasing pressure on the garbage collector reduces CPU time
+// available to the application, making it less able to complete work,
+// leading to even more pressure on the garbage collector. The
+// application must shed load to avoid this.
+//
+// The limit set by SetMaxHeap is soft. If the garbage collector would
+// consume too much CPU to keep the heap under this limit (leading to
+// "thrashing"), it will allow the heap to grow larger than the
+// specified max heap.
+//
+// The heap size does not include everything in the process's memory
+// footprint. Notably, it does not include stacks, C-allocated memory,
+// or many runtime-internal structures.
+//
+// To disable the heap limit, pass ^uintptr(0) for the bytes argument.
+// In this case, notify can be nil.
+//
+// If bytes is 0, SetMaxHeap returns the current heap limit without
+// changing it and ignores notify.
+func SetMaxHeap(bytes uintptr, notify chan<- GCPressure) uintptr {
+ if bytes == 0 || bytes == ^uintptr(0) {
+ return gcSetMaxHeap(bytes, nil)
+ }
+ if notify == nil {
+ panic("SetMaxHeap requires a non-nil notify channel")
+ }
+ var prevGCP GCPressure
+ ReadGCPressure(&prevGCP)
+ return gcSetMaxHeap(bytes, func(gogc int, maxHeap uintptr, egogc int) {
+ // This function may run with runtime locks or during
+ // STW. Non-blocking channel sends are okay.
+ gcp := GCPressure{gogc, maxHeap, egogc}
+ // The runtime calls this function on every
+ // gcSetTriggerRatio, which may not actually change
+ // the GCPressure.
+ if gcp == prevGCP {
+ return
+ }
+ prevGCP = gcp
+ select {
+ case notify <- gcp:
+ default:
+ }
+ })
+}
+
+// gcSetMaxHeap is provided by package runtime.
+func gcSetMaxHeap(bytes uintptr, cb func(gogc int, maxHeap uintptr, egogc int)) uintptr
+
+// ReadGCPressure reads the current
+func ReadGCPressure(gcp *GCPressure) {
+ gcp.GCPercent, gcp.MaxHeapBytes, gcp.EffectiveGCPercent = gcReadPressure()
+}
+
+// gcReadPressure is provided by package runtime.
+func gcReadPressure() (gogc int, maxHeap uintptr, egogc int)
diff --git a/src/runtime/mgc.go b/src/runtime/mgc.go
index 57da402..2f99cda 100644
--- a/src/runtime/mgc.go
+++ b/src/runtime/mgc.go
@@ -189,6 +189,9 @@
// This will go into computing the initial GC goal.
memstats.heap_marked = uint64(float64(heapminimum) / (1 + memstats.triggerRatio))

+ // Disable heap limit initially.
+ mheap_.maxHeap = ^uintptr(0)
+
// Set gcpercent from the environment. This will also compute
// and set the GC trigger and goal.
_ = setGCPercent(readgogc())
@@ -233,6 +236,22 @@
return out
}

+//go:linkname gcSetMaxHeap runtime/debug.gcSetMaxHeap
+func gcSetMaxHeap(bytes uintptr, cb func(gogc int, maxHeap uintptr, egogc int)) uintptr {
+ lock(&mheap_.lock)
+ prev := mheap_.maxHeap
+ if bytes == 0 {
+ unlock(&mheap_.lock)
+ return prev
+ }
+ mheap_.maxHeap = bytes
+ mheap_.gcPressureChange = cb
+ // Updating pacing.
+ gcSetTriggerRatio(memstats.triggerRatio)
+ unlock(&mheap_.lock)
+ return prev
+}
+
// Garbage collector phase.
// Indicates to write barrier and synchronization task to perform.
var gcphase uint32
@@ -755,17 +774,40 @@
// This can be called any time. If GC is the in the middle of a
// concurrent phase, it will adjust the pacing of that phase.
//
-// This depends on gcpercent, memstats.heap_marked, and
-// memstats.heap_live. These must be up to date.
+// This depends on gcpercent, mheap_.maxHeap, memstats.heap_marked,
+// and memstats.heap_live. These must be up to date.
//
// mheap_.lock must be held or the world must be stopped.
func gcSetTriggerRatio(triggerRatio float64) {
// Compute the next GC goal, which is when the allocated heap
// has grown by GOGC/100 over the heap marked by the last
- // cycle.
+ // cycle, or maxHeap, whichever is lower.
goal := ^uint64(0)
if gcpercent >= 0 {
goal = memstats.heap_marked + memstats.heap_marked*uint64(gcpercent)/100
+ if goal > uint64(mheap_.maxHeap) {
+ // Use maxHeap-based goal.
+ goal = uint64(mheap_.maxHeap)
+
+ // Avoid thrashing by not letting the
+ // effective GOGC drop below 10.
+ //
+ // TODO(austin): This heuristic is pulled from
+ // thin air. It might be better to do
+ // something to more directly force
+ // amortization of GC costs, e.g., by limiting
+ // what fraction of the time GC can be active.
+ var minGOGC uint64 = 10
+ if uint64(gcpercent) < minGOGC {
+ // The user explicitly requested
+ // GOGC < minGOGC. Use that.
+ minGOGC = uint64(gcpercent)
+ }
+ lowerBound := memstats.heap_marked + memstats.heap_marked*minGOGC/100
+ if goal < lowerBound {
+ goal = lowerBound
+ }
+ }
}

// Set the trigger ratio, capped to reasonable bounds.
@@ -773,13 +815,9 @@
// This can happen if the mutator is allocating very
// quickly or the GC is scanning very slowly.
triggerRatio = 0
- } else if gcpercent >= 0 {
- // Ensure there's always a little margin so that the
- // mutator assist ratio isn't infinity.
- maxTriggerRatio := 0.95 * float64(gcpercent) / 100
- if triggerRatio > maxTriggerRatio {
- triggerRatio = maxTriggerRatio
- }
+ } else if gcpercent >= 0 && triggerRatio > float64(gcpercent)/100 {
+ // Cap trigger ratio at GOGC/100.
+ triggerRatio = float64(gcpercent) / 100
}
memstats.triggerRatio = triggerRatio

@@ -790,6 +828,12 @@
trigger := ^uint64(0)
if gcpercent >= 0 {
trigger = uint64(float64(memstats.heap_marked) * (1 + triggerRatio))
+ // Ensure there's always a little margin so that the
+ // mutator assist ratio isn't infinity.
+ if trigger > goal*95/100 {
+ trigger = goal * 95 / 100
+ }
+
// Don't trigger below the minimum heap size.
minTrigger := heapminimum
if !gosweepdone() {
@@ -862,6 +906,30 @@
atomic.Store64(&mheap_.pagesSweptBasis, pagesSwept)
}
}
+
+ // Notify the debug package of a GC pressure change.
+ if mheap_.gcPressureChange != nil {
+ mheap_.gcPressureChange(gcReadPressureLocked())
+ }
+}
+
+//go:linkname gcReadPressure runtime/debug.gcReadPressure
+func gcReadPressure() (gogc int, maxHeap uintptr, egogc int) {
+ lock(&mheap_.lock)
+ gogc, maxHeap, egogc = gcReadPressureLocked()
+ unlock(&mheap_.lock)
+ return
+}
+
+func gcReadPressureLocked() (gogc int, maxHeap uintptr, egogc int) {
+ goal := memstats.next_gc
+ if goal <= uint64(mheap_.maxHeap) {
+ egogc = int(gcpercent)
+ } else {
+ // Back out the effective GOGC from the goal.
+ egogc = int((goal - memstats.heap_marked) * 100 / memstats.heap_marked)
+ }
+ return int(gcpercent), mheap_.maxHeap, egogc
}

// gcGoalUtilization is the goal CPU utilization for background
diff --git a/src/runtime/mheap.go b/src/runtime/mheap.go
index 60676ab..1d1f805 100644
--- a/src/runtime/mheap.go
+++ b/src/runtime/mheap.go
@@ -154,6 +154,17 @@
specialfinalizeralloc fixalloc // allocator for specialfinalizer*
specialprofilealloc fixalloc // allocator for specialprofile*
speciallock mutex // lock for special record allocators.
+
+ // maxHeap is the GC heap limit.
+ //
+ // This is set by the user with debug.SetMaxHeap. GC will
+ // attempt to keep heap_live under maxHeap, even if it has to
+ // violate GOGC (up to a point).
+ maxHeap uintptr
+
+ // gcPressureChange is called after every gcSetTriggerRatio.
+ // It's provided by package debug. It may be nil.
+ gcPressureChange func(gogc int, maxHeap uintptr, egogc int)
}

var mheap_ mheap
diff --git a/src/runtime/mstats.go b/src/runtime/mstats.go
index 1cb44a1..2c7c185 100644
--- a/src/runtime/mstats.go
+++ b/src/runtime/mstats.go
@@ -344,8 +344,8 @@
//
// The garbage collector's goal is to keep HeapAlloc ≤ NextGC.
// At the end of each GC cycle, the target for the next cycle
- // is computed based on the amount of reachable data and the
- // value of GOGC.
+ // is computed based on the amount of reachable data, the
+ // value of GOGC, and the max heap size (if set).
NextGC uint64

// LastGC is the time the last garbage collection finished, as

To view, visit change 46751. To unsubscribe, visit settings.

Gerrit-Project: go
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
Gerrit-Change-Number: 46751
Gerrit-PatchSet: 1
Gerrit-Owner: Austin Clements <aus...@google.com>
Gerrit-Reviewer: Austin Clements <aus...@google.com>
Gerrit-Reviewer: Rick Hudson <r...@golang.org>

Gobot Gobot (Gerrit)

unread,
Jun 26, 2017, 3:17:29 PM6/26/17
to Austin Clements, Rick Hudson, golang-co...@googlegroups.com

Gobot Gobot posted comments on this change.

View Change

Patch set 1:

TryBots beginning. Status page: https://farmer.golang.org/try?commit=773a302d

    To view, visit change 46751. To unsubscribe, visit settings.

    Gerrit-Project: go
    Gerrit-Branch: master
    Gerrit-MessageType: comment
    Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
    Gerrit-Change-Number: 46751
    Gerrit-PatchSet: 1
    Gerrit-Owner: Austin Clements <aus...@google.com>
    Gerrit-Reviewer: Austin Clements <aus...@google.com>
    Gerrit-Reviewer: Rick Hudson <r...@golang.org>
    Gerrit-CC: Gobot Gobot <go...@golang.org>
    Gerrit-Comment-Date: Mon, 26 Jun 2017 19:17:26 +0000
    Gerrit-HasComments: No
    Gerrit-HasLabels: No

    Gobot Gobot (Gerrit)

    unread,
    Jun 26, 2017, 3:27:57 PM6/26/17
    to Austin Clements, Rick Hudson, golang-co...@googlegroups.com

    Gobot Gobot posted comments on this change.

    View Change

    Patch set 1:TryBot-Result +1

    TryBots are happy.

      To view, visit change 46751. To unsubscribe, visit settings.

      Gerrit-Project: go
      Gerrit-Branch: master
      Gerrit-MessageType: comment
      Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
      Gerrit-Change-Number: 46751
      Gerrit-PatchSet: 1
      Gerrit-Owner: Austin Clements <aus...@google.com>
      Gerrit-Reviewer: Austin Clements <aus...@google.com>
      Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
      Gerrit-Reviewer: Rick Hudson <r...@golang.org>
      Gerrit-Comment-Date: Mon, 26 Jun 2017 19:27:54 +0000
      Gerrit-HasComments: No
      Gerrit-HasLabels: Yes

      Ian Lance Taylor (Gerrit)

      unread,
      Jun 26, 2017, 5:23:54 PM6/26/17
      to Austin Clements, Gobot Gobot, Rick Hudson, golang-co...@googlegroups.com

      Ian Lance Taylor posted comments on this change.

      View Change

      Patch set 1:

      (3 comments)


        • // the current garbage collection cycle will not exceed

        • 	// MaxHeapBytes

          Does it mean that _heap growth_ will not exceed MaxHeapBytes, or does it mean that _the heap size_ will not exceed MaxHeapBytes.

        • Patch Set #1, Line 211:

        • will send an up-to-date GCPressure value to

        • // the notify channel

          Is there any requirement that this be a buffered channel? It's not obvious to me what a synchronous channel means when the sender is the runtime. The closest comparison I can think of today is os/signal.Notify, but there the sender on the channel is not actually the runtime, and a notification is explicitly dropped if there is no room.

          In general, what are the consequences of missing a notification? We could do a different approach, such as a goroutine that sleeps until something changes, then writes to a channel to say that something has changed, then goes back to sleep. The user code would just receive a notification that something has changed, and would call a different runtime function to get the current values. That way the user code is always working with the up to date status.

          I bring this up because this API is most useful when the program is under heavy load, which is exactly when the program might be slow to read from the channel informing it that it is under heavy load. We should do our best to make sure that when the program is shedding load it is doing so with the most timely information we can provide.

      To view, visit change 46751. To unsubscribe, visit settings.

      Gerrit-Project: go
      Gerrit-Branch: master
      Gerrit-MessageType: comment
      Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
      Gerrit-Change-Number: 46751
      Gerrit-PatchSet: 1
      Gerrit-Owner: Austin Clements <aus...@google.com>
      Gerrit-Reviewer: Austin Clements <aus...@google.com>
      Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
      Gerrit-Reviewer: Rick Hudson <r...@golang.org>
      Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
      Gerrit-Comment-Date: Mon, 26 Jun 2017 21:23:52 +0000
      Gerrit-HasComments: Yes
      Gerrit-HasLabels: No

      Austin Clements (Gerrit)

      unread,
      Aug 15, 2017, 12:15:29 PM8/15/17
      to Austin Clements, Ian Lance Taylor, Gobot Gobot, Rick Hudson, golang-co...@googlegroups.com

      View Change

      3 comments:

        • heap growth during


        • // the current garbage collection cycle will not exceed

        • 	// MaxHeapBytes

          Does it mean that _heap growth_ will not exceed MaxHeapBytes, or does it mean that _the heap size_ w […]

          Actually I'm not sure what I was trying to say here. I've rewritten the comment.

        • will send an up-to-date GCPressure value to
          // the notify channel

          Is there any requirement that this be a buffered channel? It's not obvious to me what a synchronous […]

          The send is non-blocking, just like os/signal.Notify, and gets dropped on the floor if there's no room.

          But you make an interesting point that, under load, it's more stable to send a content-less "there's been a change" to the channel, since those would be safe to drop from a buffered channel.

      To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-Project: go
      Gerrit-Branch: master
      Gerrit-MessageType: comment
      Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
      Gerrit-Change-Number: 46751
      Gerrit-PatchSet: 1
      Gerrit-Owner: Austin Clements <aus...@google.com>
      Gerrit-Reviewer: Austin Clements <aus...@google.com>
      Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
      Gerrit-Reviewer: Rick Hudson <r...@golang.org>
      Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
      Gerrit-Comment-Date: Tue, 15 Aug 2017 16:15:26 +0000
      Gerrit-HasComments: Yes
      Gerrit-HasLabels: No

      Austin Clements (Gerrit)

      unread,
      Aug 15, 2017, 12:16:06 PM8/15/17
      to Austin Clements, Rick Hudson, Gobot Gobot, Ian Lance Taylor, golang-co...@googlegroups.com

      Austin Clements uploaded patch set #2 to this change.

      View Change

      runtime/debug: add SetMaxHeap API

      DO NOT SUBMIT. This is an experiment to get some experience with the
      API and figure out if this is even a reasonable primitive. It needs
      tests. The implementation is complete, but there are some questions
      about the API in the code.

      TODO: Tests.


      This adds an API to set a soft limit on the heap size. This augments
      the existing GOGC-based GC policy by using the lower of the
      GOGC-computed GC target and the heap limit.

      When the garbage collector is bounded by the heap limit, it can no
      longer amortize the cost of garbage collection against the cost of
      growing the heap. Hence, callers of this API are required to register
      for notifications of when the garbage collector is under pressure and
      are strongly encouraged to use this signal to shed load.

      Updates #16843.

      Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
      ---
      M src/runtime/debug/garbage.go
      M src/runtime/mgc.go
      M src/runtime/mheap.go
      M src/runtime/mstats.go
      4 files changed, 209 insertions(+), 12 deletions(-)

      To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-Project: go
      Gerrit-Branch: master
      Gerrit-MessageType: newpatchset
      Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
      Gerrit-Change-Number: 46751
      Gerrit-PatchSet: 2
      Gerrit-Owner: Austin Clements <aus...@google.com>
      Gerrit-Reviewer: Austin Clements <aus...@google.com>

      Gobot Gobot (Gerrit)

      unread,
      Aug 15, 2017, 12:26:01 PM8/15/17
      to Austin Clements, Ian Lance Taylor, Rick Hudson, golang-co...@googlegroups.com

      TryBots beginning. Status page: https://farmer.golang.org/try?commit=8f3966e9

      View Change

        To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

        Gerrit-Project: go
        Gerrit-Branch: master
        Gerrit-MessageType: comment
        Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
        Gerrit-Change-Number: 46751
        Gerrit-PatchSet: 2
        Gerrit-Owner: Austin Clements <aus...@google.com>
        Gerrit-Reviewer: Austin Clements <aus...@google.com>
        Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
        Gerrit-Reviewer: Rick Hudson <r...@golang.org>
        Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
        Gerrit-Comment-Date: Tue, 15 Aug 2017 16:25:58 +0000
        Gerrit-HasComments: No
        Gerrit-HasLabels: No

        Gobot Gobot (Gerrit)

        unread,
        Aug 15, 2017, 12:38:51 PM8/15/17
        to Austin Clements, Ian Lance Taylor, Rick Hudson, golang-co...@googlegroups.com

        TryBots are happy.

        Patch set 2:TryBot-Result +1

        View Change

          To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

          Gerrit-Project: go
          Gerrit-Branch: master
          Gerrit-MessageType: comment
          Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
          Gerrit-Change-Number: 46751
          Gerrit-PatchSet: 2
          Gerrit-Owner: Austin Clements <aus...@google.com>
          Gerrit-Reviewer: Austin Clements <aus...@google.com>
          Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
          Gerrit-Reviewer: Rick Hudson <r...@golang.org>
          Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
          Gerrit-Comment-Date: Tue, 15 Aug 2017 16:37:30 +0000
          Gerrit-HasComments: No
          Gerrit-HasLabels: Yes

          Rick Hudson (Gerrit)

          unread,
          Aug 29, 2017, 5:28:24 PM8/29/17
          to Austin Clements, Gobot Gobot, Ian Lance Taylor, golang-co...@googlegroups.com

          View Change

          4 comments:


            • // If a max heap is s

            • The send is non-blocking, just like os/signal. […]

              I tend to agree. Another advantage is that a "there's been a change" API is future proof.

            • Patch Set #1, Line 213: the heap size under

              "Whenever the GCPressure changes in response to memory pressure, a notification is sent on channel c. "

              We don't want to send notifications as a result of calls to SetGCPercent or SetMaxHeap.

          • File src/runtime/debug/garbage.go:

            • Patch Set #2, Line 237: // specified max heap.

              MaxHeapBytes will not be changed but the EffectiveGCPercent will go negative. I noticed you used type int for this so perhaps you already considered this.

          To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

          Gerrit-Project: go
          Gerrit-Branch: master
          Gerrit-MessageType: comment
          Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
          Gerrit-Change-Number: 46751
          Gerrit-PatchSet: 2
          Gerrit-Owner: Austin Clements <aus...@google.com>
          Gerrit-Reviewer: Austin Clements <aus...@google.com>
          Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
          Gerrit-Reviewer: Rick Hudson <r...@golang.org>
          Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
          Gerrit-Comment-Date: Tue, 29 Aug 2017 21:28:08 +0000
          Gerrit-HasComments: Yes
          Gerrit-HasLabels: No

          Austin Clements (Gerrit)

          unread,
          Sep 19, 2017, 5:36:35 PM9/19/17
          to Austin Clements, goph...@pubsubhelper.golang.org, Rick Hudson, Gobot Gobot, Ian Lance Taylor, golang-co...@googlegroups.com

          I've found some bugs that I need to work out related to the minimum trigger. Currently, the trigger isn't allowed to go below 4MB*GOGC/100 or below heap_live+1MB*GOGC/100 (if we're still sweeping). Unfortunately, this means if you set GOGC to something huge expecting to depend only on the max heap setting, the trigger may wind up set the something huge anyway.

          Patch set 2:Code-Review -2

          View Change

          3 comments:

            • Done

          • File src/runtime/debug/garbage.go:

            • Patch Set #1, Line 213: the heap size under

              "Whenever the GCPressure changes in response to memory pressure, a notification is sent on channel c […]

              I think we *do* want to send a notification if a call to SetGCPercent or SetMaxHeap changes the pressure. Otherwise any practical use is just going to have to manually call its "respond to pressure change" function as soon as it does this. Besides, with the "there's been a change" API, "spurious" notifications shouldn't really be problematic.

          • File src/runtime/debug/garbage.go:

            • MaxHeapBytes will not be changed but the EffectiveGCPercent will go negative. […]

              EffectiveGCPercent can't go negative precisely because of this thrashing avoidance. I've rewritten the comment on EffectiveGCPercent to hopefully be more clear.

          To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

          Gerrit-Project: go
          Gerrit-Branch: master
          Gerrit-MessageType: comment
          Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
          Gerrit-Change-Number: 46751
          Gerrit-PatchSet: 2
          Gerrit-Owner: Austin Clements <aus...@google.com>
          Gerrit-Reviewer: Austin Clements <aus...@google.com>
          Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
          Gerrit-Reviewer: Rick Hudson <r...@golang.org>
          Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
          Gerrit-Comment-Date: Tue, 19 Sep 2017 21:36:30 +0000
          Gerrit-HasComments: Yes
          Gerrit-HasLabels: Yes

          Austin Clements (Gerrit)

          unread,
          Sep 25, 2017, 4:27:50 PM9/25/17
          to Austin Clements, Rick Hudson, Gobot Gobot, goph...@pubsubhelper.golang.org, Ian Lance Taylor, golang-co...@googlegroups.com

          Austin Clements uploaded patch set #3 to this change.

          View Change

          runtime/debug: add SetMaxHeap API

          DO NOT SUBMIT. This is an experiment to get some experience with the
          API and figure out if this is even a reasonable primitive. It needs
          tests. The implementation is complete, but there are some questions
          about the API in the code.

          This adds an API to set a soft limit on the heap size. This augments
          the existing GOGC-based GC policy by using the lower of the
          GOGC-computed GC target and the heap limit.

          When the garbage collector is bounded by the heap limit, it can no
          longer amortize the cost of garbage collection against the cost of
          growing the heap. Hence, callers of this API are required to register
          for notifications of when the garbage collector is under pressure and
          are strongly encouraged/expected to use this signal to shed load.


          Updates #16843.

          Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
          ---
          M src/runtime/debug/garbage.go
          M src/runtime/debug/garbage_test.go

          M src/runtime/mgc.go
          M src/runtime/mheap.go
          M src/runtime/mstats.go
          5 files changed, 299 insertions(+), 16 deletions(-)

          To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

          Gerrit-Project: go
          Gerrit-Branch: master
          Gerrit-MessageType: newpatchset
          Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
          Gerrit-Change-Number: 46751
          Gerrit-PatchSet: 3
          Gerrit-Owner: Austin Clements <aus...@google.com>
          Gerrit-Reviewer: Austin Clements <aus...@google.com>

          Gobot Gobot (Gerrit)

          unread,
          Sep 25, 2017, 4:28:09 PM9/25/17
          to Austin Clements, goph...@pubsubhelper.golang.org, Rick Hudson, Ian Lance Taylor, golang-co...@googlegroups.com

          TryBots beginning. Status page: https://farmer.golang.org/try?commit=927b4c66

          View Change

            To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

            Gerrit-Project: go
            Gerrit-Branch: master
            Gerrit-MessageType: comment
            Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
            Gerrit-Change-Number: 46751
            Gerrit-PatchSet: 3
            Gerrit-Owner: Austin Clements <aus...@google.com>
            Gerrit-Reviewer: Austin Clements <aus...@google.com>
            Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
            Gerrit-Reviewer: Rick Hudson <r...@golang.org>
            Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
            Gerrit-Comment-Date: Mon, 25 Sep 2017 20:28:07 +0000
            Gerrit-HasComments: No
            Gerrit-HasLabels: No

            Gobot Gobot (Gerrit)

            unread,
            Sep 25, 2017, 4:34:49 PM9/25/17
            to Austin Clements, goph...@pubsubhelper.golang.org, Rick Hudson, Ian Lance Taylor, golang-co...@googlegroups.com

            Build is still in progress...
            This change failed on windows-386-2008:
            See https://storage.googleapis.com/go-build-log/927b4c66/windows-386-2008_7304cf3a.log

            Consult https://build.golang.org/ to see whether it's a new failure. Other builds still in progress; subsequent failure notices suppressed until final report.

            View Change

              To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

              Gerrit-Project: go
              Gerrit-Branch: master
              Gerrit-MessageType: comment
              Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
              Gerrit-Change-Number: 46751
              Gerrit-PatchSet: 3
              Gerrit-Owner: Austin Clements <aus...@google.com>
              Gerrit-Reviewer: Austin Clements <aus...@google.com>
              Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
              Gerrit-Reviewer: Rick Hudson <r...@golang.org>
              Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
              Gerrit-Comment-Date: Mon, 25 Sep 2017 20:34:46 +0000
              Gerrit-HasComments: No
              Gerrit-HasLabels: No

              Gobot Gobot (Gerrit)

              unread,
              Sep 25, 2017, 4:40:23 PM9/25/17
              to Austin Clements, goph...@pubsubhelper.golang.org, Rick Hudson, Ian Lance Taylor, golang-co...@googlegroups.com

              3 of 21 TryBots failed:
              Failed on windows-386-2008: https://storage.googleapis.com/go-build-log/927b4c66/windows-386-2008_7304cf3a.log
              Failed on linux-amd64-race: https://storage.googleapis.com/go-build-log/927b4c66/linux-amd64-race_7d03fdd2.log
              Failed on linux-386: https://storage.googleapis.com/go-build-log/927b4c66/linux-386_16049408.log

              Consult https://build.golang.org/ to see whether they are new failures.

              Patch set 3:TryBot-Result -1

              View Change

                To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

                Gerrit-Project: go
                Gerrit-Branch: master
                Gerrit-MessageType: comment
                Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                Gerrit-Change-Number: 46751
                Gerrit-PatchSet: 3
                Gerrit-Owner: Austin Clements <aus...@google.com>
                Gerrit-Reviewer: Austin Clements <aus...@google.com>
                Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
                Gerrit-Reviewer: Rick Hudson <r...@golang.org>
                Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
                Gerrit-Comment-Date: Mon, 25 Sep 2017 20:40:20 +0000
                Gerrit-HasComments: No
                Gerrit-HasLabels: Yes

                Gobot Gobot (Gerrit)

                unread,
                Sep 25, 2017, 5:07:12 PM9/25/17
                to Austin Clements, goph...@pubsubhelper.golang.org, Rick Hudson, Ian Lance Taylor, golang-co...@googlegroups.com

                TryBots beginning. Status page: https://farmer.golang.org/try?commit=cca040af

                View Change

                  To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

                  Gerrit-Project: go
                  Gerrit-Branch: master
                  Gerrit-MessageType: comment
                  Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                  Gerrit-Change-Number: 46751
                  Gerrit-PatchSet: 4
                  Gerrit-Owner: Austin Clements <aus...@google.com>
                  Gerrit-Reviewer: Austin Clements <aus...@google.com>
                  Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
                  Gerrit-Reviewer: Rick Hudson <r...@golang.org>
                  Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
                  Gerrit-Comment-Date: Mon, 25 Sep 2017 21:07:08 +0000
                  Gerrit-HasComments: No
                  Gerrit-HasLabels: No

                  Gobot Gobot (Gerrit)

                  unread,
                  Sep 25, 2017, 5:13:58 PM9/25/17
                  to Austin Clements, goph...@pubsubhelper.golang.org, Rick Hudson, Ian Lance Taylor, golang-co...@googlegroups.com

                  Build is still in progress...

                  This change failed on linux-amd64-race:
                  See https://storage.googleapis.com/go-build-log/cca040af/linux-amd64-race_33d2dba9.log

                  Consult https://build.golang.org/ to see whether it's a new failure. Other builds still in progress; subsequent failure notices suppressed until final report.

                  View Change

                    To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

                    Gerrit-Project: go
                    Gerrit-Branch: master
                    Gerrit-MessageType: comment
                    Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                    Gerrit-Change-Number: 46751
                    Gerrit-PatchSet: 4
                    Gerrit-Owner: Austin Clements <aus...@google.com>
                    Gerrit-Reviewer: Austin Clements <aus...@google.com>
                    Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
                    Gerrit-Reviewer: Rick Hudson <r...@golang.org>
                    Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
                    Gerrit-Comment-Date: Mon, 25 Sep 2017 21:13:55 +0000
                    Gerrit-HasComments: No
                    Gerrit-HasLabels: No

                    Gobot Gobot (Gerrit)

                    unread,
                    Sep 25, 2017, 5:19:52 PM9/25/17
                    to Austin Clements, goph...@pubsubhelper.golang.org, Rick Hudson, Ian Lance Taylor, golang-co...@googlegroups.com

                    3 of 21 TryBots failed:

                    Failed on linux-amd64-race: https://storage.googleapis.com/go-build-log/cca040af/linux-amd64-race_33d2dba9.log
                    Failed on linux-386: https://storage.googleapis.com/go-build-log/cca040af/linux-386_580ecb1c.log
                    Failed on windows-386-2008: https://storage.googleapis.com/go-build-log/cca040af/windows-386-2008_1958ba4a.log

                    Consult https://build.golang.org/ to see whether they are new failures.

                    Patch set 4:TryBot-Result -1

                    View Change

                      To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

                      Gerrit-Project: go
                      Gerrit-Branch: master
                      Gerrit-MessageType: comment
                      Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                      Gerrit-Change-Number: 46751
                      Gerrit-PatchSet: 4
                      Gerrit-Owner: Austin Clements <aus...@google.com>
                      Gerrit-Reviewer: Austin Clements <aus...@google.com>
                      Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
                      Gerrit-Reviewer: Rick Hudson <r...@golang.org>
                      Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
                      Gerrit-Comment-Date: Mon, 25 Sep 2017 21:19:50 +0000
                      Gerrit-HasComments: No
                      Gerrit-HasLabels: Yes

                      Austin Clements (Gerrit)

                      unread,
                      Sep 25, 2017, 9:52:29 PM9/25/17
                      to Austin Clements, Rick Hudson, Gobot Gobot, goph...@pubsubhelper.golang.org, Ian Lance Taylor, golang-co...@googlegroups.com

                      Austin Clements uploaded patch set #5 to this change.

                      View Change

                      runtime/debug: add SetMaxHeap API

                      DO NOT SUBMIT. This is an experiment to get some experience with the
                      API and figure out if this is even a reasonable primitive. It needs
                      tests. The implementation is complete, but there are some questions
                      about the API in the code.

                      This adds an API to set a soft limit on the heap size. This augments
                      the existing GOGC-based GC policy by using the lower of the
                      GOGC-computed GC target and the heap limit.

                      When the garbage collector is bounded by the heap limit, it can no
                      longer amortize the cost of garbage collection against the cost of
                      growing the heap. Hence, callers of this API are required to register
                      for notifications of when the garbage collector is under pressure and
                      are strongly encouraged/expected to use this signal to shed load.


                      Updates #16843.

                      Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                      ---
                      M src/runtime/debug/garbage.go
                      M src/runtime/debug/garbage_test.go

                      M src/runtime/mgc.go
                      M src/runtime/mheap.go
                      M src/runtime/mstats.go
                      5 files changed, 299 insertions(+), 16 deletions(-)

                      To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

                      Gerrit-Project: go
                      Gerrit-Branch: master
                      Gerrit-MessageType: newpatchset
                      Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                      Gerrit-Change-Number: 46751
                      Gerrit-PatchSet: 5
                      Gerrit-Owner: Austin Clements <aus...@google.com>
                      Gerrit-Reviewer: Austin Clements <aus...@google.com>

                      Gobot Gobot (Gerrit)

                      unread,
                      Sep 25, 2017, 9:52:44 PM9/25/17
                      to Austin Clements, goph...@pubsubhelper.golang.org, Rick Hudson, Ian Lance Taylor, golang-co...@googlegroups.com

                      TryBots beginning. Status page: https://farmer.golang.org/try?commit=265f490c

                      View Change

                        To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

                        Gerrit-Project: go
                        Gerrit-Branch: master
                        Gerrit-MessageType: comment
                        Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                        Gerrit-Change-Number: 46751
                        Gerrit-PatchSet: 5
                        Gerrit-Owner: Austin Clements <aus...@google.com>
                        Gerrit-Reviewer: Austin Clements <aus...@google.com>
                        Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
                        Gerrit-Reviewer: Rick Hudson <r...@golang.org>
                        Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
                        Gerrit-Comment-Date: Tue, 26 Sep 2017 01:52:41 +0000
                        Gerrit-HasComments: No
                        Gerrit-HasLabels: No

                        Gobot Gobot (Gerrit)

                        unread,
                        Sep 25, 2017, 9:56:17 PM9/25/17
                        to Austin Clements, goph...@pubsubhelper.golang.org, Rick Hudson, Ian Lance Taylor, golang-co...@googlegroups.com

                        Build is still in progress...
                        This change failed on linux-amd64-race:

                        See https://storage.googleapis.com/go-build-log/265f490c/linux-amd64-race_597cc7c3.log

                        Consult https://build.golang.org/ to see whether it's a new failure. Other builds still in progress; subsequent failure notices suppressed until final report.

                        View Change

                          To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

                          Gerrit-Project: go
                          Gerrit-Branch: master
                          Gerrit-MessageType: comment
                          Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                          Gerrit-Change-Number: 46751
                          Gerrit-PatchSet: 5
                          Gerrit-Owner: Austin Clements <aus...@google.com>
                          Gerrit-Reviewer: Austin Clements <aus...@google.com>
                          Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
                          Gerrit-Reviewer: Rick Hudson <r...@golang.org>
                          Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
                          Gerrit-Comment-Date: Tue, 26 Sep 2017 01:56:14 +0000
                          Gerrit-HasComments: No
                          Gerrit-HasLabels: No

                          Gobot Gobot (Gerrit)

                          unread,
                          Sep 25, 2017, 10:03:42 PM9/25/17
                          to Austin Clements, goph...@pubsubhelper.golang.org, Rick Hudson, Ian Lance Taylor, golang-co...@googlegroups.com

                          1 of 21 TryBots failed:

                          Failed on linux-amd64-race: https://storage.googleapis.com/go-build-log/265f490c/linux-amd64-race_597cc7c3.log

                          Consult https://build.golang.org/ to see whether they are new failures.

                          Patch set 5:TryBot-Result -1

                          View Change

                            To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

                            Gerrit-Project: go
                            Gerrit-Branch: master
                            Gerrit-MessageType: comment
                            Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                            Gerrit-Change-Number: 46751
                            Gerrit-PatchSet: 5
                            Gerrit-Owner: Austin Clements <aus...@google.com>
                            Gerrit-Reviewer: Austin Clements <aus...@google.com>
                            Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
                            Gerrit-Reviewer: Rick Hudson <r...@golang.org>
                            Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
                            Gerrit-Comment-Date: Tue, 26 Sep 2017 02:03:38 +0000
                            Gerrit-HasComments: No
                            Gerrit-HasLabels: Yes

                            Austin Clements (Gerrit)

                            unread,
                            Sep 25, 2017, 10:12:16 PM9/25/17
                            to Austin Clements, goph...@pubsubhelper.golang.org, Gobot Gobot, Rick Hudson, Ian Lance Taylor, golang-co...@googlegroups.com

                            Patch Set 5: TryBot-Result-1

                            Real. (Or real-ish. It is protected by runtime locking, but the race detector can't see that.)

                            View Change

                              To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

                              Gerrit-Project: go
                              Gerrit-Branch: master
                              Gerrit-MessageType: comment
                              Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                              Gerrit-Change-Number: 46751
                              Gerrit-PatchSet: 5
                              Gerrit-Owner: Austin Clements <aus...@google.com>
                              Gerrit-Reviewer: Austin Clements <aus...@google.com>
                              Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
                              Gerrit-Reviewer: Rick Hudson <r...@golang.org>
                              Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
                              Gerrit-Comment-Date: Tue, 26 Sep 2017 02:12:11 +0000
                              Gerrit-HasComments: No
                              Gerrit-HasLabels: No

                              Austin Clements (Gerrit)

                              unread,
                              Sep 25, 2017, 10:44:13 PM9/25/17
                              to Austin Clements, Rick Hudson, Gobot Gobot, goph...@pubsubhelper.golang.org, Ian Lance Taylor, golang-co...@googlegroups.com

                              Austin Clements uploaded patch set #6 to this change.

                              View Change

                              runtime/debug: add SetMaxHeap API

                              DO NOT SUBMIT. This is an experiment to get some experience with the
                              API and figure out if this is even a reasonable primitive. It needs
                              tests. The implementation is complete, but there are some questions
                              about the API in the code.

                              This adds an API to set a soft limit on the heap size. This augments
                              the existing GOGC-based GC policy by using the lower of the
                              GOGC-computed GC target and the heap limit.

                              When the garbage collector is bounded by the heap limit, it can no
                              longer amortize the cost of garbage collection against the cost of
                              growing the heap. Hence, callers of this API are required to register
                              for notifications of when the garbage collector is under pressure and
                              are strongly encouraged/expected to use this signal to shed load.


                              Updates #16843.

                              Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                              ---
                              M src/runtime/debug/garbage.go
                              M src/runtime/debug/garbage_test.go

                              M src/runtime/mgc.go
                              M src/runtime/mheap.go
                              M src/runtime/mstats.go
                              5 files changed, 307 insertions(+), 16 deletions(-)

                              To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

                              Gerrit-Project: go
                              Gerrit-Branch: master
                              Gerrit-MessageType: newpatchset
                              Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                              Gerrit-Change-Number: 46751
                              Gerrit-PatchSet: 6
                              Gerrit-Owner: Austin Clements <aus...@google.com>
                              Gerrit-Reviewer: Austin Clements <aus...@google.com>

                              Gobot Gobot (Gerrit)

                              unread,
                              Sep 25, 2017, 10:54:44 PM9/25/17
                              to Austin Clements, goph...@pubsubhelper.golang.org, Rick Hudson, Ian Lance Taylor, golang-co...@googlegroups.com

                              TryBots beginning. Status page: https://farmer.golang.org/try?commit=da956b2e

                              View Change

                                To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

                                Gerrit-Project: go
                                Gerrit-Branch: master
                                Gerrit-MessageType: comment
                                Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                Gerrit-Change-Number: 46751
                                Gerrit-PatchSet: 6
                                Gerrit-Owner: Austin Clements <aus...@google.com>
                                Gerrit-Reviewer: Austin Clements <aus...@google.com>
                                Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
                                Gerrit-Reviewer: Rick Hudson <r...@golang.org>
                                Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
                                Gerrit-Comment-Date: Tue, 26 Sep 2017 02:54:39 +0000
                                Gerrit-HasComments: No
                                Gerrit-HasLabels: No

                                Gobot Gobot (Gerrit)

                                unread,
                                Sep 25, 2017, 11:05:45 PM9/25/17
                                to Austin Clements, goph...@pubsubhelper.golang.org, Rick Hudson, Ian Lance Taylor, golang-co...@googlegroups.com

                                TryBots are happy.

                                Patch set 6:TryBot-Result +1

                                View Change

                                  To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

                                  Gerrit-Project: go
                                  Gerrit-Branch: master
                                  Gerrit-MessageType: comment
                                  Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                  Gerrit-Change-Number: 46751
                                  Gerrit-PatchSet: 6
                                  Gerrit-Owner: Austin Clements <aus...@google.com>
                                  Gerrit-Reviewer: Austin Clements <aus...@google.com>
                                  Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
                                  Gerrit-Reviewer: Rick Hudson <r...@golang.org>
                                  Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
                                  Gerrit-Comment-Date: Tue, 26 Sep 2017 03:05:41 +0000
                                  Gerrit-HasComments: No
                                  Gerrit-HasLabels: Yes

                                  Austin Clements (Gerrit)

                                  unread,
                                  Sep 26, 2017, 9:22:49 AM9/26/17
                                  to Austin Clements, goph...@pubsubhelper.golang.org, Damien Neil, Gobot Gobot, Rick Hudson, Ian Lance Taylor, golang-co...@googlegroups.com

                                  Adding Damien for API review.

                                  Patch set 6:-Code-Review

                                  View Change

                                    To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

                                    Gerrit-Project: go
                                    Gerrit-Branch: master
                                    Gerrit-MessageType: comment
                                    Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                    Gerrit-Change-Number: 46751
                                    Gerrit-PatchSet: 6
                                    Gerrit-Owner: Austin Clements <aus...@google.com>
                                    Gerrit-Reviewer: Austin Clements <aus...@google.com>
                                    Gerrit-Reviewer: Damien Neil <dn...@google.com>
                                    Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
                                    Gerrit-Reviewer: Rick Hudson <r...@golang.org>
                                    Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
                                    Gerrit-Comment-Date: Tue, 26 Sep 2017 13:22:46 +0000
                                    Gerrit-HasComments: No
                                    Gerrit-HasLabels: Yes

                                    Austin Clements (Gerrit)

                                    unread,
                                    Sep 26, 2017, 9:25:46 AM9/26/17
                                    to Austin Clements, Rick Hudson, Gobot Gobot, Damien Neil, goph...@pubsubhelper.golang.org, Ian Lance Taylor, golang-co...@googlegroups.com

                                    Austin Clements uploaded patch set #7 to this change.

                                    View Change

                                    runtime/debug: add SetMaxHeap API

                                    DO NOT SUBMIT. This is an experiment to get some experience with the
                                    API and figure out if this is even a reasonable primitive.

                                    This adds an API to set a soft limit on the heap size. This augments
                                    the existing GOGC-based GC policy by using the lower of the
                                    GOGC-computed GC target and the heap limit.

                                    When the garbage collector is bounded by the heap limit, it can no
                                    longer amortize the cost of garbage collection against the cost of
                                    growing the heap. Hence, callers of this API are required to register
                                    for notifications of when the garbage collector is under pressure and
                                    are strongly encouraged/expected to use this signal to shed load.

                                    Updates #16843.

                                    Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                    ---
                                    M src/runtime/debug/garbage.go
                                    M src/runtime/debug/garbage_test.go
                                    M src/runtime/mgc.go
                                    M src/runtime/mheap.go
                                    M src/runtime/mstats.go
                                    5 files changed, 307 insertions(+), 16 deletions(-)

                                    To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

                                    Gerrit-Project: go
                                    Gerrit-Branch: master
                                    Gerrit-MessageType: newpatchset
                                    Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                    Gerrit-Change-Number: 46751
                                    Gerrit-PatchSet: 7

                                    Rick Hudson (Gerrit)

                                    unread,
                                    Sep 26, 2017, 3:04:03 PM9/26/17
                                    to Austin Clements, goph...@pubsubhelper.golang.org, Damien Neil, Gobot Gobot, Ian Lance Taylor, golang-co...@googlegroups.com

                                    View Change

                                    5 comments:

                                    To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

                                    Gerrit-Project: go
                                    Gerrit-Branch: master
                                    Gerrit-MessageType: comment
                                    Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                    Gerrit-Change-Number: 46751
                                    Gerrit-PatchSet: 7
                                    Gerrit-Owner: Austin Clements <aus...@google.com>
                                    Gerrit-Reviewer: Austin Clements <aus...@google.com>
                                    Gerrit-Reviewer: Damien Neil <dn...@google.com>
                                    Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
                                    Gerrit-Reviewer: Rick Hudson <r...@golang.org>
                                    Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
                                    Gerrit-Comment-Date: Tue, 26 Sep 2017 19:03:57 +0000
                                    Gerrit-HasComments: Yes
                                    Gerrit-HasLabels: No

                                    Damien Neil (Gerrit)

                                    unread,
                                    Sep 26, 2017, 4:47:46 PM9/26/17
                                    to Austin Clements, goph...@pubsubhelper.golang.org, Rick Hudson, Gobot Gobot, Ian Lance Taylor, golang-co...@googlegroups.com

                                    API LGTM other than comment on SetMaxHeap.

                                    Patch set 7:Code-Review +1

                                    View Change

                                    1 comment:


                                      • // If bytes is 0, SetMaxHeap returns the current heap limit without
                                        // changing it and ignores notify.

                                      • Can't you do this with ReadGCPolicy, if not let's beef up ReadGCPolicy. […]

                                        +1

                                    To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

                                    Gerrit-Project: go
                                    Gerrit-Branch: master
                                    Gerrit-MessageType: comment
                                    Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                    Gerrit-Change-Number: 46751
                                    Gerrit-PatchSet: 7
                                    Gerrit-Owner: Austin Clements <aus...@google.com>
                                    Gerrit-Reviewer: Austin Clements <aus...@google.com>
                                    Gerrit-Reviewer: Damien Neil <dn...@google.com>
                                    Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
                                    Gerrit-Reviewer: Rick Hudson <r...@golang.org>
                                    Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
                                    Gerrit-Comment-Date: Tue, 26 Sep 2017 20:47:41 +0000
                                    Gerrit-HasComments: Yes
                                    Gerrit-HasLabels: Yes

                                    Austin Clements (Gerrit)

                                    unread,
                                    Sep 26, 2017, 5:41:23 PM9/26/17
                                    to Austin Clements, Rick Hudson, Gobot Gobot, Damien Neil, goph...@pubsubhelper.golang.org, Ian Lance Taylor, golang-co...@googlegroups.com

                                    Austin Clements uploaded patch set #8 to this change.

                                    View Change

                                    runtime/debug: add SetMaxHeap API

                                    DO NOT SUBMIT. This is an experiment to get some experience with the
                                    API and figure out if this is even a reasonable primitive.

                                    This adds an API to set a soft limit on the heap size. This augments
                                    the existing GOGC-based GC policy by using the lower of the
                                    GOGC-computed GC target and the heap limit.

                                    When the garbage collector is bounded by the heap limit, it can no
                                    longer amortize the cost of garbage collection against the cost of
                                    growing the heap. Hence, callers of this API are required to register
                                    for notifications of when the garbage collector is under pressure and
                                    are strongly encouraged/expected to use this signal to shed load.

                                    Updates #16843.

                                    Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                    ---
                                    M src/runtime/debug/garbage.go
                                    M src/runtime/debug/garbage_test.go
                                    M src/runtime/mgc.go
                                    M src/runtime/mheap.go
                                    M src/runtime/mstats.go
                                    5 files changed, 309 insertions(+), 16 deletions(-)

                                    To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

                                    Gerrit-Project: go
                                    Gerrit-Branch: master
                                    Gerrit-MessageType: newpatchset
                                    Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                    Gerrit-Change-Number: 46751
                                    Gerrit-PatchSet: 8

                                    Gobot Gobot (Gerrit)

                                    unread,
                                    Sep 26, 2017, 5:41:40 PM9/26/17
                                    to Austin Clements, goph...@pubsubhelper.golang.org, Damien Neil, Rick Hudson, Ian Lance Taylor, golang-co...@googlegroups.com

                                    TryBots beginning. Status page: https://farmer.golang.org/try?commit=f7979471

                                    View Change

                                      To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

                                      Gerrit-Project: go
                                      Gerrit-Branch: master
                                      Gerrit-MessageType: comment
                                      Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                      Gerrit-Change-Number: 46751
                                      Gerrit-PatchSet: 8
                                      Gerrit-Owner: Austin Clements <aus...@google.com>
                                      Gerrit-Reviewer: Austin Clements <aus...@google.com>
                                      Gerrit-Reviewer: Damien Neil <dn...@google.com>
                                      Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
                                      Gerrit-Reviewer: Rick Hudson <r...@golang.org>
                                      Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
                                      Gerrit-Comment-Date: Tue, 26 Sep 2017 21:41:37 +0000
                                      Gerrit-HasComments: No
                                      Gerrit-HasLabels: No

                                      Gobot Gobot (Gerrit)

                                      unread,
                                      Sep 26, 2017, 5:52:40 PM9/26/17
                                      to Austin Clements, goph...@pubsubhelper.golang.org, Damien Neil, Rick Hudson, Ian Lance Taylor, golang-co...@googlegroups.com

                                      TryBots are happy.

                                      Patch set 8:TryBot-Result +1

                                      View Change

                                        To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

                                        Gerrit-Project: go
                                        Gerrit-Branch: master
                                        Gerrit-MessageType: comment
                                        Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                        Gerrit-Change-Number: 46751
                                        Gerrit-PatchSet: 8
                                        Gerrit-Owner: Austin Clements <aus...@google.com>
                                        Gerrit-Reviewer: Austin Clements <aus...@google.com>
                                        Gerrit-Reviewer: Damien Neil <dn...@google.com>
                                        Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
                                        Gerrit-Reviewer: Rick Hudson <r...@golang.org>
                                        Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
                                        Gerrit-Comment-Date: Tue, 26 Sep 2017 21:52:37 +0000
                                        Gerrit-HasComments: No
                                        Gerrit-HasLabels: Yes

                                        Austin Clements (Gerrit)

                                        unread,
                                        Sep 26, 2017, 5:54:15 PM9/26/17
                                        to Austin Clements, goph...@pubsubhelper.golang.org, Gobot Gobot, Damien Neil, Rick Hudson, Ian Lance Taylor, golang-co...@googlegroups.com

                                        View Change

                                        5 comments:

                                          • I don't appreciated the situation where AvailGCPercent is > GCPercent.

                                          • Partly I'm future-proofing this. Right now it can't be, but you could imagine that, for example, if we're operating on a very small heap, AvailGCPercent could be higher than GCPercent to indicate that there's additional head-room created by this lower bound.

                                          • I really do mean "reaches". If the heap is stays under the heap size limit (even if it's approaching it), we can still use the GOGC-based goal and amortize the cost.

                                            Technically, what I mean here is "when the GOGC-based goal exceeds the heap size limit", but I haven't used the term "goal" anywhere else. I'm open to better wording, but I don't think "approaches" is right.

                                          • nc SetMaxHeap(bytes uintptr, notify chan<- struct{}) uintptr {
                                            if bytes == ^uintptr(0) {
                                            return gcSetMaxHeap(bytes, nil)

                                            +1

                                            Ah, good call. I think this is left over from an earlier API design. Removed this special case. I still think it should return the previous setting in general for consistency with several other APIs in this package.

                                        • File src/runtime/debug/garbage_test.go:

                                          • Patch Set #7, Line 202: prev := SetMaxHeap(limit,

                                            should return value be noted and dealt with. […]

                                            Modified the test to check the return value.

                                        • File src/runtime/mgc.go:

                                          • of the time GC can be active.
                                            var minGOGC uint64 = 10
                                            if gcpercent >= 0 && uint64(gcpercent) < minGOGC {
                                            // The user explicitly requested
                                            // GOGC < minGOGC. Use that.

                                          • I agree with this. It will give us something to do in the next CL.

                                          • Got to keep ourselves busy somehow!

                                            One question is how these sort of utilization limits would be reflected in GCPolicy, if at all. They probably can't meaningfully affect AvailGCPercent. But should there be a way to read them? To set them?

                                        To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

                                        Gerrit-Project: go
                                        Gerrit-Branch: master
                                        Gerrit-MessageType: comment
                                        Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                        Gerrit-Change-Number: 46751
                                        Gerrit-PatchSet: 8
                                        Gerrit-Owner: Austin Clements <aus...@google.com>
                                        Gerrit-Reviewer: Austin Clements <aus...@google.com>
                                        Gerrit-Reviewer: Damien Neil <dn...@google.com>
                                        Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
                                        Gerrit-Reviewer: Rick Hudson <r...@golang.org>
                                        Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
                                        Gerrit-Comment-Date: Tue, 26 Sep 2017 21:54:11 +0000
                                        Gerrit-HasComments: Yes
                                        Gerrit-HasLabels: No

                                        Rick Hudson (Gerrit)

                                        unread,
                                        Sep 26, 2017, 6:47:37 PM9/26/17
                                        to Austin Clements, goph...@pubsubhelper.golang.org, Gobot Gobot, Damien Neil, Ian Lance Taylor, golang-co...@googlegroups.com

                                        Patch set 8:Code-Review +2

                                        View Change

                                        4 comments:

                                          • Partly I'm future-proofing this. […]

                                            Ack

                                          • I really do mean "reaches". […]

                                            Ack

                                          • Patch Set #7, Line 259:

                                            nc SetMaxHeap(bytes uintptr, notify chan<- struct{}) uintptr {
                                            if bytes == ^uintptr(0) {
                                            return gcSetMaxHeap(bytes, nil)

                                          • Modified the test to check the return value.

                                            Ack

                                        To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

                                        Gerrit-Project: go
                                        Gerrit-Branch: master
                                        Gerrit-MessageType: comment
                                        Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                        Gerrit-Change-Number: 46751
                                        Gerrit-PatchSet: 8
                                        Gerrit-Owner: Austin Clements <aus...@google.com>
                                        Gerrit-Reviewer: Austin Clements <aus...@google.com>
                                        Gerrit-Reviewer: Damien Neil <dn...@google.com>
                                        Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
                                        Gerrit-Reviewer: Rick Hudson <r...@golang.org>
                                        Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
                                        Gerrit-Comment-Date: Tue, 26 Sep 2017 22:47:33 +0000
                                        Gerrit-HasComments: Yes
                                        Gerrit-HasLabels: Yes

                                        Ian Lance Taylor (Gerrit)

                                        unread,
                                        Sep 26, 2017, 8:08:20 PM9/26/17
                                        to Austin Clements, goph...@pubsubhelper.golang.org, Rick Hudson, Gobot Gobot, Damien Neil, golang-co...@googlegroups.com

                                        View Change

                                        2 comments:

                                        • File src/runtime/debug/garbage.go:

                                          • Patch Set #8, Line 189: // AvailGCPercent is the heap space available for allocation

                                            How confident are we that AvailGCPercent will remain meaningful if we significantly change the GC algorithm?

                                          • Patch Set #8, Line 227: // Whenever the garbage collector's scheduling policy changes as a

                                            It appears that there is only notify channel: if SetMaxHeap is called again, only that notify channel will be used. That is fine but needs to be documented.

                                        To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

                                        Gerrit-Project: go
                                        Gerrit-Branch: master
                                        Gerrit-MessageType: comment
                                        Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                        Gerrit-Change-Number: 46751
                                        Gerrit-PatchSet: 8
                                        Gerrit-Owner: Austin Clements <aus...@google.com>
                                        Gerrit-Reviewer: Austin Clements <aus...@google.com>
                                        Gerrit-Reviewer: Damien Neil <dn...@google.com>
                                        Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
                                        Gerrit-Reviewer: Rick Hudson <r...@golang.org>
                                        Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
                                        Gerrit-Comment-Date: Wed, 27 Sep 2017 00:08:16 +0000
                                        Gerrit-HasComments: Yes
                                        Gerrit-HasLabels: No

                                        Austin Clements (Gerrit)

                                        unread,
                                        Sep 27, 2017, 4:34:29 PM9/27/17
                                        to Austin Clements, goph...@pubsubhelper.golang.org, Rick Hudson, Gobot Gobot, Damien Neil, Ian Lance Taylor, golang-co...@googlegroups.com

                                        View Change

                                        2 comments:

                                          • How confident are we that AvailGCPercent will remain meaningful if we significantly change the GC al […]

                                            That's a good question. It's obviously hard to say, but AvailGCPercent is well-defined as long as there's a "last heap live" and a "goal heap" size. These are meaningful in a generational GC (though may not measure as well how hard the garbage collector is working), since we update the live heap size on each full GC. Similarly, I'm pretty sure this is meaningful if we start eagerly freeing heap objects. I think you could even say they're meaningful with manual memory management, though there your live heap would theoretically update on every malloc/free, and the goal would probably only be finite if a max heap size is set.

                                          • It appears that there is only notify channel: if SetMaxHeap is called again, only that notify channe […]

                                            Yes, thanks for catching that.

                                            Though I'm still not sure that's actually the right API choice.

                                        To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

                                        Gerrit-Project: go
                                        Gerrit-Branch: master
                                        Gerrit-MessageType: comment
                                        Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                        Gerrit-Change-Number: 46751
                                        Gerrit-PatchSet: 8
                                        Gerrit-Owner: Austin Clements <aus...@google.com>
                                        Gerrit-Reviewer: Austin Clements <aus...@google.com>
                                        Gerrit-Reviewer: Damien Neil <dn...@google.com>
                                        Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
                                        Gerrit-Reviewer: Rick Hudson <r...@golang.org>
                                        Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
                                        Gerrit-Comment-Date: Wed, 27 Sep 2017 20:34:24 +0000
                                        Gerrit-HasComments: Yes
                                        Gerrit-HasLabels: No

                                        Austin Clements (Gerrit)

                                        unread,
                                        Sep 27, 2017, 4:34:46 PM9/27/17
                                        to Austin Clements, Rick Hudson, Gobot Gobot, Damien Neil, goph...@pubsubhelper.golang.org, Ian Lance Taylor, golang-co...@googlegroups.com

                                        Austin Clements uploaded patch set #9 to this change.

                                        View Change

                                        runtime/debug: add SetMaxHeap API

                                        DO NOT SUBMIT. This is an experiment to get some experience with the
                                        API and figure out if this is even a reasonable primitive.

                                        This adds an API to set a soft limit on the heap size. This augments
                                        the existing GOGC-based GC policy by using the lower of the
                                        GOGC-computed GC target and the heap limit.

                                        When the garbage collector is bounded by the heap limit, it can no
                                        longer amortize the cost of garbage collection against the cost of
                                        growing the heap. Hence, callers of this API are required to register
                                        for notifications of when the garbage collector is under pressure and
                                        are strongly encouraged/expected to use this signal to shed load.

                                        Updates #16843.

                                        Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                        ---
                                        M src/runtime/debug/garbage.go
                                        M src/runtime/debug/garbage_test.go
                                        M src/runtime/mgc.go
                                        M src/runtime/mheap.go
                                        M src/runtime/mstats.go
                                        5 files changed, 311 insertions(+), 16 deletions(-)

                                        To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

                                        Gerrit-Project: go
                                        Gerrit-Branch: master
                                        Gerrit-MessageType: newpatchset
                                        Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                        Gerrit-Change-Number: 46751
                                        Gerrit-PatchSet: 9

                                        Gobot Gobot (Gerrit)

                                        unread,
                                        Sep 27, 2017, 4:34:56 PM9/27/17
                                        to Austin Clements, goph...@pubsubhelper.golang.org, Rick Hudson, Damien Neil, Ian Lance Taylor, golang-co...@googlegroups.com

                                        TryBots beginning. Status page: https://farmer.golang.org/try?commit=0021eed3

                                        View Change

                                          To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

                                          Gerrit-Project: go
                                          Gerrit-Branch: master
                                          Gerrit-MessageType: comment
                                          Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                          Gerrit-Change-Number: 46751
                                          Gerrit-PatchSet: 9
                                          Gerrit-Owner: Austin Clements <aus...@google.com>
                                          Gerrit-Reviewer: Austin Clements <aus...@google.com>
                                          Gerrit-Reviewer: Damien Neil <dn...@google.com>
                                          Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
                                          Gerrit-Reviewer: Rick Hudson <r...@golang.org>
                                          Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
                                          Gerrit-Comment-Date: Wed, 27 Sep 2017 20:34:52 +0000
                                          Gerrit-HasComments: No
                                          Gerrit-HasLabels: No

                                          Gobot Gobot (Gerrit)

                                          unread,
                                          Sep 27, 2017, 4:46:05 PM9/27/17
                                          to Austin Clements, goph...@pubsubhelper.golang.org, Rick Hudson, Damien Neil, Ian Lance Taylor, golang-co...@googlegroups.com

                                          TryBots are happy.

                                          Patch set 9:TryBot-Result +1

                                          View Change

                                            To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

                                            Gerrit-Project: go
                                            Gerrit-Branch: master
                                            Gerrit-MessageType: comment
                                            Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                            Gerrit-Change-Number: 46751
                                            Gerrit-PatchSet: 9
                                            Gerrit-Owner: Austin Clements <aus...@google.com>
                                            Gerrit-Reviewer: Austin Clements <aus...@google.com>
                                            Gerrit-Reviewer: Damien Neil <dn...@google.com>
                                            Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
                                            Gerrit-Reviewer: Rick Hudson <r...@golang.org>
                                            Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
                                            Gerrit-Comment-Date: Wed, 27 Sep 2017 20:46:00 +0000
                                            Gerrit-HasComments: No
                                            Gerrit-HasLabels: Yes

                                            Austin Clements (Gerrit)

                                            unread,
                                            Jan 24, 2018, 11:51:27 AM1/24/18
                                            to Austin Clements, Rick Hudson, Gobot Gobot, Damien Neil, goph...@pubsubhelper.golang.org, Ian Lance Taylor, golang-co...@googlegroups.com

                                            Austin Clements uploaded patch set #10 to this change.

                                            View Change

                                            runtime/debug: add SetMaxHeap API

                                            DO NOT SUBMIT. This is an experiment to get some experience with the
                                            API and figure out if this is even a reasonable primitive.

                                            This adds an API to set a soft limit on the heap size. This augments
                                            the existing GOGC-based GC policy by using the lower of the
                                            GOGC-computed GC target and the heap limit.

                                            When the garbage collector is bounded by the heap limit, it can no
                                            longer amortize the cost of garbage collection against the cost of
                                            growing the heap. Hence, callers of this API are required to register
                                            for notifications of when the garbage collector is under pressure and
                                            are strongly encouraged/expected to use this signal to shed load.

                                            Updates #16843.

                                            Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                            ---
                                            M src/runtime/debug/garbage.go
                                            M src/runtime/debug/garbage_test.go
                                            M src/runtime/mgc.go
                                            M src/runtime/mheap.go
                                            M src/runtime/mstats.go
                                            5 files changed, 311 insertions(+), 16 deletions(-)

                                            To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

                                            Gerrit-Project: go
                                            Gerrit-Branch: master
                                            Gerrit-MessageType: newpatchset
                                            Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                            Gerrit-Change-Number: 46751
                                            Gerrit-PatchSet: 10

                                            Gobot Gobot (Gerrit)

                                            unread,
                                            Jan 24, 2018, 11:51:41 AM1/24/18
                                            to Austin Clements, goph...@pubsubhelper.golang.org, Rick Hudson, Damien Neil, Ian Lance Taylor, golang-co...@googlegroups.com

                                            TryBots beginning. Status page: https://farmer.golang.org/try?commit=a3660517

                                            View Change

                                              To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

                                              Gerrit-Project: go
                                              Gerrit-Branch: master
                                              Gerrit-MessageType: comment
                                              Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                              Gerrit-Change-Number: 46751
                                              Gerrit-PatchSet: 10
                                              Gerrit-Owner: Austin Clements <aus...@google.com>
                                              Gerrit-Reviewer: Austin Clements <aus...@google.com>
                                              Gerrit-Reviewer: Damien Neil <dn...@google.com>
                                              Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
                                              Gerrit-Reviewer: Rick Hudson <r...@golang.org>
                                              Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
                                              Gerrit-Comment-Date: Wed, 24 Jan 2018 16:51:38 +0000
                                              Gerrit-HasComments: No
                                              Gerrit-HasLabels: No

                                              Gobot Gobot (Gerrit)

                                              unread,
                                              Jan 24, 2018, 12:05:42 PM1/24/18
                                              to Austin Clements, goph...@pubsubhelper.golang.org, Rick Hudson, Damien Neil, Ian Lance Taylor, golang-co...@googlegroups.com

                                              TryBots are happy.

                                              Patch set 10:TryBot-Result +1

                                              View Change

                                                To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

                                                Gerrit-Project: go
                                                Gerrit-Branch: master
                                                Gerrit-MessageType: comment
                                                Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                                Gerrit-Change-Number: 46751
                                                Gerrit-PatchSet: 10
                                                Gerrit-Owner: Austin Clements <aus...@google.com>
                                                Gerrit-Reviewer: Austin Clements <aus...@google.com>
                                                Gerrit-Reviewer: Damien Neil <dn...@google.com>
                                                Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
                                                Gerrit-Reviewer: Rick Hudson <r...@golang.org>
                                                Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
                                                Gerrit-Comment-Date: Wed, 24 Jan 2018 17:05:39 +0000
                                                Gerrit-HasComments: No
                                                Gerrit-HasLabels: Yes

                                                Austin Clements (Gerrit)

                                                unread,
                                                Apr 6, 2018, 3:50:33 PM4/6/18
                                                to Austin Clements, Rick Hudson, Gobot Gobot, Damien Neil, goph...@pubsubhelper.golang.org, Ian Lance Taylor, golang-co...@googlegroups.com

                                                Austin Clements uploaded patch set #11 to this change.

                                                View Change

                                                runtime/debug: add SetMaxHeap API

                                                DO NOT SUBMIT. This is an experiment to get some experience with the
                                                API and figure out if this is even a reasonable primitive.

                                                This adds an API to set a soft limit on the heap size. This augments
                                                the existing GOGC-based GC policy by using the lower of the
                                                GOGC-computed GC target and the heap limit.

                                                When the garbage collector is bounded by the heap limit, it can no
                                                longer amortize the cost of garbage collection against the cost of
                                                growing the heap. Hence, callers of this API are required to register
                                                for notifications of when the garbage collector is under pressure and
                                                are strongly encouraged/expected to use this signal to shed load.

                                                Updates #16843.

                                                Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                                ---
                                                M src/runtime/debug/garbage.go
                                                M src/runtime/debug/garbage_test.go
                                                M src/runtime/mgc.go
                                                M src/runtime/mheap.go
                                                M src/runtime/mstats.go
                                                5 files changed, 356 insertions(+), 16 deletions(-)

                                                To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

                                                Gerrit-Project: go
                                                Gerrit-Branch: master
                                                Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                                Gerrit-Change-Number: 46751
                                                Gerrit-PatchSet: 11
                                                Gerrit-Owner: Austin Clements <aus...@google.com>
                                                Gerrit-Reviewer: Austin Clements <aus...@google.com>
                                                Gerrit-Reviewer: Damien Neil <dn...@google.com>
                                                Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
                                                Gerrit-Reviewer: Rick Hudson <r...@golang.org>
                                                Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
                                                Gerrit-MessageType: newpatchset

                                                Gobot Gobot (Gerrit)

                                                unread,
                                                Apr 6, 2018, 3:50:48 PM4/6/18
                                                to Austin Clements, goph...@pubsubhelper.golang.org, Rick Hudson, Damien Neil, Ian Lance Taylor, golang-co...@googlegroups.com

                                                TryBots beginning. Status page: https://farmer.golang.org/try?commit=8b016466

                                                View Change

                                                  To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

                                                  Gerrit-Project: go
                                                  Gerrit-Branch: master
                                                  Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                                  Gerrit-Change-Number: 46751
                                                  Gerrit-PatchSet: 11
                                                  Gerrit-Owner: Austin Clements <aus...@google.com>
                                                  Gerrit-Reviewer: Austin Clements <aus...@google.com>
                                                  Gerrit-Reviewer: Damien Neil <dn...@google.com>
                                                  Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
                                                  Gerrit-Reviewer: Rick Hudson <r...@golang.org>
                                                  Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
                                                  Gerrit-Comment-Date: Fri, 06 Apr 2018 19:50:46 +0000
                                                  Gerrit-HasComments: No
                                                  Gerrit-Has-Labels: No
                                                  Gerrit-MessageType: comment

                                                  Gobot Gobot (Gerrit)

                                                  unread,
                                                  Apr 6, 2018, 3:55:01 PM4/6/18
                                                  to Austin Clements, goph...@pubsubhelper.golang.org, Rick Hudson, Damien Neil, Ian Lance Taylor, golang-co...@googlegroups.com

                                                  Build is still in progress...

                                                  This change failed on linux-386:
                                                  See https://storage.googleapis.com/go-build-log/8b016466/linux-386_3007e844.log

                                                  Consult https://build.golang.org/ to see whether it's a new failure. Other builds still in progress; subsequent failure notices suppressed until final report.

                                                  View Change

                                                    To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

                                                    Gerrit-Project: go
                                                    Gerrit-Branch: master
                                                    Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                                    Gerrit-Change-Number: 46751
                                                    Gerrit-PatchSet: 11
                                                    Gerrit-Owner: Austin Clements <aus...@google.com>
                                                    Gerrit-Reviewer: Austin Clements <aus...@google.com>
                                                    Gerrit-Reviewer: Damien Neil <dn...@google.com>
                                                    Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
                                                    Gerrit-Reviewer: Rick Hudson <r...@golang.org>
                                                    Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
                                                    Gerrit-Comment-Date: Fri, 06 Apr 2018 19:54:59 +0000

                                                    Gobot Gobot (Gerrit)

                                                    unread,
                                                    Apr 6, 2018, 4:00:54 PM4/6/18
                                                    to Austin Clements, goph...@pubsubhelper.golang.org, Rick Hudson, Damien Neil, Ian Lance Taylor, golang-co...@googlegroups.com

                                                    4 of 17 TryBots failed:
                                                    Failed on linux-386: https://storage.googleapis.com/go-build-log/8b016466/linux-386_3007e844.log
                                                    Failed on nacl-amd64p32: https://storage.googleapis.com/go-build-log/8b016466/nacl-amd64p32_8bc59802.log
                                                    Failed on nacl-386: https://storage.googleapis.com/go-build-log/8b016466/nacl-386_342e144d.log
                                                    Failed on windows-386-2008: https://storage.googleapis.com/go-build-log/8b016466/windows-386-2008_8a88716f.log

                                                    Consult https://build.golang.org/ to see whether they are new failures.

                                                    Patch set 11:TryBot-Result -1

                                                    View Change

                                                      To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

                                                      Gerrit-Project: go
                                                      Gerrit-Branch: master
                                                      Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                                      Gerrit-Change-Number: 46751
                                                      Gerrit-PatchSet: 11
                                                      Gerrit-Owner: Austin Clements <aus...@google.com>
                                                      Gerrit-Reviewer: Austin Clements <aus...@google.com>
                                                      Gerrit-Reviewer: Damien Neil <dn...@google.com>
                                                      Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
                                                      Gerrit-Reviewer: Rick Hudson <r...@golang.org>
                                                      Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
                                                      Gerrit-Comment-Date: Fri, 06 Apr 2018 20:00:50 +0000
                                                      Gerrit-HasComments: No
                                                      Gerrit-Has-Labels: Yes
                                                      Gerrit-MessageType: comment

                                                      Austin Clements (Gerrit)

                                                      unread,
                                                      Apr 6, 2018, 4:05:33 PM4/6/18
                                                      to Austin Clements, Rick Hudson, Gobot Gobot, Damien Neil, goph...@pubsubhelper.golang.org, Ian Lance Taylor, golang-co...@googlegroups.com

                                                      Austin Clements uploaded patch set #12 to this change.

                                                      View Change

                                                      runtime/debug: add SetMaxHeap API

                                                      DO NOT SUBMIT. This is an experiment to get some experience with the
                                                      API and figure out if this is even a reasonable primitive.

                                                      This adds an API to set a soft limit on the heap size. This augments
                                                      the existing GOGC-based GC policy by using the lower of the
                                                      GOGC-computed GC target and the heap limit.

                                                      When the garbage collector is bounded by the heap limit, it can no
                                                      longer amortize the cost of garbage collection against the cost of
                                                      growing the heap. Hence, callers of this API are required to register
                                                      for notifications of when the garbage collector is under pressure and
                                                      are strongly encouraged/expected to use this signal to shed load.

                                                      Updates #16843.

                                                      Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                                      ---
                                                      M src/runtime/debug/garbage.go
                                                      M src/runtime/debug/garbage_test.go
                                                      M src/runtime/mgc.go
                                                      M src/runtime/mheap.go
                                                      M src/runtime/mstats.go
                                                      5 files changed, 357 insertions(+), 16 deletions(-)

                                                      To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

                                                      Gerrit-Project: go
                                                      Gerrit-Branch: master
                                                      Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                                      Gerrit-Change-Number: 46751
                                                      Gerrit-PatchSet: 12
                                                      Gerrit-Owner: Austin Clements <aus...@google.com>
                                                      Gerrit-Reviewer: Austin Clements <aus...@google.com>
                                                      Gerrit-Reviewer: Damien Neil <dn...@google.com>
                                                      Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
                                                      Gerrit-Reviewer: Rick Hudson <r...@golang.org>
                                                      Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
                                                      Gerrit-MessageType: newpatchset

                                                      Gobot Gobot (Gerrit)

                                                      unread,
                                                      Apr 6, 2018, 4:05:48 PM4/6/18
                                                      to Austin Clements, goph...@pubsubhelper.golang.org, Rick Hudson, Damien Neil, Ian Lance Taylor, golang-co...@googlegroups.com

                                                      TryBots beginning. Status page: https://farmer.golang.org/try?commit=37fc66e6

                                                      View Change

                                                        To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

                                                        Gerrit-Project: go
                                                        Gerrit-Branch: master
                                                        Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                                        Gerrit-Change-Number: 46751
                                                        Gerrit-PatchSet: 12
                                                        Gerrit-Owner: Austin Clements <aus...@google.com>
                                                        Gerrit-Reviewer: Austin Clements <aus...@google.com>
                                                        Gerrit-Reviewer: Damien Neil <dn...@google.com>
                                                        Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
                                                        Gerrit-Reviewer: Rick Hudson <r...@golang.org>
                                                        Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
                                                        Gerrit-Comment-Date: Fri, 06 Apr 2018 20:05:46 +0000

                                                        Gobot Gobot (Gerrit)

                                                        unread,
                                                        Apr 6, 2018, 4:13:53 PM4/6/18
                                                        to Austin Clements, goph...@pubsubhelper.golang.org, Rick Hudson, Damien Neil, Ian Lance Taylor, golang-co...@googlegroups.com

                                                        TryBots are happy.

                                                        Patch set 12:TryBot-Result +1

                                                        View Change

                                                          To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

                                                          Gerrit-Project: go
                                                          Gerrit-Branch: master
                                                          Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                                          Gerrit-Change-Number: 46751
                                                          Gerrit-PatchSet: 12
                                                          Gerrit-Owner: Austin Clements <aus...@google.com>
                                                          Gerrit-Reviewer: Austin Clements <aus...@google.com>
                                                          Gerrit-Reviewer: Damien Neil <dn...@google.com>
                                                          Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
                                                          Gerrit-Reviewer: Rick Hudson <r...@golang.org>
                                                          Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
                                                          Gerrit-Comment-Date: Fri, 06 Apr 2018 20:13:49 +0000

                                                          Joe Tsai (Gerrit)

                                                          unread,
                                                          May 9, 2018, 2:22:57 PM5/9/18
                                                          to Austin Clements, goph...@pubsubhelper.golang.org, Gobot Gobot, Rick Hudson, Damien Neil, Ian Lance Taylor, golang-co...@googlegroups.com

                                                          Will this CL be submitted for Go1.11?

                                                          View Change

                                                            To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

                                                            Gerrit-Project: go
                                                            Gerrit-Branch: master
                                                            Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                                            Gerrit-Change-Number: 46751
                                                            Gerrit-PatchSet: 12
                                                            Gerrit-Owner: Austin Clements <aus...@google.com>
                                                            Gerrit-Reviewer: Austin Clements <aus...@google.com>
                                                            Gerrit-Reviewer: Damien Neil <dn...@google.com>
                                                            Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
                                                            Gerrit-Reviewer: Rick Hudson <r...@golang.org>
                                                            Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
                                                            Gerrit-CC: Joe Tsai <joe...@google.com>
                                                            Gerrit-Comment-Date: Wed, 09 May 2018 18:22:53 +0000

                                                            Gobot Gobot (Gerrit)

                                                            unread,
                                                            Jan 31, 2019, 3:51:06 PM1/31/19
                                                            to David Chase, Austin Clements, goph...@pubsubhelper.golang.org, Damien Neil, Joe Tsai, Rick Hudson, Ian Lance Taylor, golang-co...@googlegroups.com

                                                            TryBots beginning. Status page: https://farmer.golang.org/try?commit=d2cd4303

                                                            View Change

                                                              To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

                                                              Gerrit-Project: go
                                                              Gerrit-Branch: master
                                                              Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                                              Gerrit-Change-Number: 46751
                                                              Gerrit-PatchSet: 13
                                                              Gerrit-Owner: Austin Clements <aus...@google.com>
                                                              Gerrit-Reviewer: Austin Clements <aus...@google.com>
                                                              Gerrit-Reviewer: David Chase <drc...@google.com>
                                                              Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
                                                              Gerrit-Reviewer: Rick Hudson <r...@golang.org>
                                                              Gerrit-CC: Damien Neil <dn...@google.com>
                                                              Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
                                                              Gerrit-CC: Joe Tsai <joe...@google.com>
                                                              Gerrit-Comment-Date: Thu, 31 Jan 2019 20:51:04 +0000

                                                              Gobot Gobot (Gerrit)

                                                              unread,
                                                              Jan 31, 2019, 4:04:47 PM1/31/19
                                                              to David Chase, Austin Clements, goph...@pubsubhelper.golang.org, Damien Neil, Joe Tsai, Rick Hudson, Ian Lance Taylor, golang-co...@googlegroups.com

                                                              TryBots are happy.

                                                              Patch set 13:TryBot-Result +1

                                                              View Change

                                                                To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

                                                                Gerrit-Project: go
                                                                Gerrit-Branch: master
                                                                Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                                                Gerrit-Change-Number: 46751
                                                                Gerrit-PatchSet: 13
                                                                Gerrit-Owner: Austin Clements <aus...@google.com>
                                                                Gerrit-Reviewer: Austin Clements <aus...@google.com>
                                                                Gerrit-Reviewer: David Chase <drc...@google.com>
                                                                Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
                                                                Gerrit-Reviewer: Rick Hudson <r...@golang.org>
                                                                Gerrit-CC: Damien Neil <dn...@google.com>
                                                                Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
                                                                Gerrit-CC: Joe Tsai <joe...@google.com>
                                                                Gerrit-Comment-Date: Thu, 31 Jan 2019 21:04:44 +0000

                                                                Austin Clements (Gerrit)

                                                                unread,
                                                                Mar 1, 2019, 2:49:14 PM3/1/19
                                                                to Austin Clements, Rick Hudson, David Chase, Gobot Gobot, goph...@pubsubhelper.golang.org, Joe Tsai, Ian Lance Taylor, Damien Neil, golang-co...@googlegroups.com

                                                                Austin Clements uploaded patch set #14 to this change.

                                                                View Change

                                                                runtime/debug: add SetMaxHeap API

                                                                DO NOT SUBMIT. This is an experiment to get some experience with the
                                                                API and figure out if this is even a reasonable primitive.

                                                                This adds an API to set a soft limit on the heap size. This augments
                                                                the existing GOGC-based GC policy by using the lower of the
                                                                GOGC-computed GC target and the heap limit.

                                                                When the garbage collector is bounded by the heap limit, it can no
                                                                longer amortize the cost of garbage collection against the cost of
                                                                growing the heap. Hence, callers of this API are required to register
                                                                for notifications of when the garbage collector is under pressure and
                                                                are strongly encouraged/expected to use this signal to shed load.

                                                                This CL incorporates fixes from CL 151540 and CL 156917 by
                                                                mkny...@google.com.


                                                                Updates #16843.

                                                                Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                                                ---
                                                                M src/runtime/debug/garbage.go
                                                                M src/runtime/debug/garbage_test.go
                                                                M src/runtime/mgc.go
                                                                M src/runtime/mstats.go
                                                                4 files changed, 404 insertions(+), 19 deletions(-)

                                                                To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

                                                                Gerrit-Project: go
                                                                Gerrit-Branch: master
                                                                Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                                                Gerrit-Change-Number: 46751
                                                                Gerrit-PatchSet: 14
                                                                Gerrit-Owner: Austin Clements <aus...@google.com>
                                                                Gerrit-Reviewer: Austin Clements <aus...@google.com>
                                                                Gerrit-Reviewer: David Chase <drc...@google.com>
                                                                Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
                                                                Gerrit-Reviewer: Rick Hudson <r...@golang.org>
                                                                Gerrit-CC: Damien Neil <dn...@google.com>
                                                                Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
                                                                Gerrit-CC: Joe Tsai <joe...@google.com>
                                                                Gerrit-MessageType: newpatchset

                                                                Gobot Gobot (Gerrit)

                                                                unread,
                                                                Mar 1, 2019, 2:49:28 PM3/1/19
                                                                to Austin Clements, goph...@pubsubhelper.golang.org, David Chase, Damien Neil, Joe Tsai, Rick Hudson, Ian Lance Taylor, golang-co...@googlegroups.com

                                                                TryBots beginning. Status page: https://farmer.golang.org/try?commit=315fdaf0

                                                                View Change

                                                                  To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

                                                                  Gerrit-Project: go
                                                                  Gerrit-Branch: master
                                                                  Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                                                  Gerrit-Change-Number: 46751
                                                                  Gerrit-PatchSet: 14
                                                                  Gerrit-Owner: Austin Clements <aus...@google.com>
                                                                  Gerrit-Reviewer: Austin Clements <aus...@google.com>
                                                                  Gerrit-Reviewer: David Chase <drc...@google.com>
                                                                  Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
                                                                  Gerrit-Reviewer: Rick Hudson <r...@golang.org>
                                                                  Gerrit-CC: Damien Neil <dn...@google.com>
                                                                  Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
                                                                  Gerrit-CC: Joe Tsai <joe...@google.com>
                                                                  Gerrit-Comment-Date: Fri, 01 Mar 2019 19:49:26 +0000

                                                                  Gobot Gobot (Gerrit)

                                                                  unread,
                                                                  Mar 1, 2019, 3:02:38 PM3/1/19
                                                                  to Austin Clements, goph...@pubsubhelper.golang.org, David Chase, Damien Neil, Joe Tsai, Rick Hudson, Ian Lance Taylor, golang-co...@googlegroups.com

                                                                  TryBots are happy.

                                                                  Patch set 14:TryBot-Result +1

                                                                  View Change

                                                                    To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

                                                                    Gerrit-Project: go
                                                                    Gerrit-Branch: master
                                                                    Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                                                    Gerrit-Change-Number: 46751
                                                                    Gerrit-PatchSet: 14
                                                                    Gerrit-Owner: Austin Clements <aus...@google.com>
                                                                    Gerrit-Reviewer: Austin Clements <aus...@google.com>
                                                                    Gerrit-Reviewer: David Chase <drc...@google.com>
                                                                    Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
                                                                    Gerrit-Reviewer: Rick Hudson <r...@golang.org>
                                                                    Gerrit-CC: Damien Neil <dn...@google.com>
                                                                    Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
                                                                    Gerrit-CC: Joe Tsai <joe...@google.com>
                                                                    Gerrit-Comment-Date: Fri, 01 Mar 2019 20:02:36 +0000

                                                                    Gobot Gobot (Gerrit)

                                                                    unread,
                                                                    Mar 5, 2019, 5:50:03 PM3/5/19
                                                                    to Austin Clements, goph...@pubsubhelper.golang.org, David Chase, Damien Neil, Joe Tsai, Rick Hudson, Ian Lance Taylor, golang-co...@googlegroups.com

                                                                    TryBots beginning. Status page: https://farmer.golang.org/try?commit=9ae75d77

                                                                    View Change

                                                                      To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

                                                                      Gerrit-Project: go
                                                                      Gerrit-Branch: master
                                                                      Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                                                      Gerrit-Change-Number: 46751
                                                                      Gerrit-PatchSet: 15
                                                                      Gerrit-Owner: Austin Clements <aus...@google.com>
                                                                      Gerrit-Reviewer: Austin Clements <aus...@google.com>
                                                                      Gerrit-Reviewer: David Chase <drc...@google.com>
                                                                      Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
                                                                      Gerrit-Reviewer: Rick Hudson <r...@golang.org>
                                                                      Gerrit-CC: Damien Neil <dn...@google.com>
                                                                      Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
                                                                      Gerrit-CC: Joe Tsai <joe...@google.com>
                                                                      Gerrit-Comment-Date: Tue, 05 Mar 2019 22:50:00 +0000

                                                                      Gobot Gobot (Gerrit)

                                                                      unread,
                                                                      Mar 5, 2019, 6:07:00 PM3/5/19
                                                                      to Austin Clements, goph...@pubsubhelper.golang.org, David Chase, Damien Neil, Joe Tsai, Rick Hudson, Ian Lance Taylor, golang-co...@googlegroups.com

                                                                      TryBots are happy.

                                                                      Patch set 15:TryBot-Result +1

                                                                      View Change

                                                                        To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

                                                                        Gerrit-Project: go
                                                                        Gerrit-Branch: master
                                                                        Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                                                        Gerrit-Change-Number: 46751
                                                                        Gerrit-PatchSet: 15
                                                                        Gerrit-Owner: Austin Clements <aus...@google.com>
                                                                        Gerrit-Reviewer: Austin Clements <aus...@google.com>
                                                                        Gerrit-Reviewer: David Chase <drc...@google.com>
                                                                        Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
                                                                        Gerrit-Reviewer: Rick Hudson <r...@golang.org>
                                                                        Gerrit-CC: Damien Neil <dn...@google.com>
                                                                        Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
                                                                        Gerrit-CC: Joe Tsai <joe...@google.com>
                                                                        Gerrit-Comment-Date: Tue, 05 Mar 2019 23:06:58 +0000

                                                                        Austin Clements (Gerrit)

                                                                        unread,
                                                                        Aug 2, 2019, 5:52:33 PM8/2/19
                                                                        to Austin Clements, Gobot Gobot, David Chase, Rick Hudson, goph...@pubsubhelper.golang.org, Damien Neil, Ian Lance Taylor, Joe Tsai, golang-co...@googlegroups.com

                                                                        Austin Clements uploaded patch set #16 to this change.

                                                                        View Change

                                                                        runtime/debug: add SetMaxHeap API

                                                                        DO NOT SUBMIT. This is an experiment to get some experience with the
                                                                        API and figure out if this is even a reasonable primitive.

                                                                        This adds an API to set a soft limit on the heap size. This augments
                                                                        the existing GOGC-based GC policy by using the lower of the
                                                                        GOGC-computed GC target and the heap limit.

                                                                        When the garbage collector is bounded by the heap limit, it can no
                                                                        longer amortize the cost of garbage collection against the cost of
                                                                        growing the heap. Hence, callers of this API are required to register
                                                                        for notifications of when the garbage collector is under pressure and
                                                                        are strongly encouraged/expected to use this signal to shed load.

                                                                        This CL incorporates fixes from CL 151540 and CL 156917 by
                                                                        mkny...@google.com.

                                                                        Updates #16843.

                                                                        Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                                                        ---
                                                                        M src/runtime/debug/garbage.go
                                                                        M src/runtime/debug/garbage_test.go
                                                                        M src/runtime/mgc.go
                                                                        M src/runtime/mstats.go
                                                                        4 files changed, 405 insertions(+), 19 deletions(-)

                                                                        To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

                                                                        Gerrit-Project: go
                                                                        Gerrit-Branch: master
                                                                        Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                                                        Gerrit-Change-Number: 46751
                                                                        Gerrit-PatchSet: 16
                                                                        Gerrit-Owner: Austin Clements <aus...@google.com>
                                                                        Gerrit-Reviewer: Austin Clements <aus...@google.com>
                                                                        Gerrit-Reviewer: David Chase <drc...@google.com>
                                                                        Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
                                                                        Gerrit-Reviewer: Rick Hudson <r...@golang.org>
                                                                        Gerrit-CC: Damien Neil <dn...@google.com>
                                                                        Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
                                                                        Gerrit-CC: Joe Tsai <joe...@google.com>
                                                                        Gerrit-MessageType: newpatchset

                                                                        Austin Clements (Gerrit)

                                                                        unread,
                                                                        Aug 2, 2019, 5:53:15 PM8/2/19
                                                                        to Austin Clements, goph...@pubsubhelper.golang.org, Gobot Gobot, David Chase, Damien Neil, Joe Tsai, Rick Hudson, Ian Lance Taylor, golang-co...@googlegroups.com

                                                                        PS16 rebases to current master (approaching Go 1.13 rc1)

                                                                        View Change

                                                                          To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

                                                                          Gerrit-Project: go
                                                                          Gerrit-Branch: master
                                                                          Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                                                          Gerrit-Change-Number: 46751
                                                                          Gerrit-PatchSet: 16
                                                                          Gerrit-Owner: Austin Clements <aus...@google.com>
                                                                          Gerrit-Reviewer: Austin Clements <aus...@google.com>
                                                                          Gerrit-Reviewer: David Chase <drc...@google.com>
                                                                          Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
                                                                          Gerrit-Reviewer: Rick Hudson <r...@golang.org>
                                                                          Gerrit-CC: Damien Neil <dn...@google.com>
                                                                          Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
                                                                          Gerrit-CC: Joe Tsai <joe...@google.com>
                                                                          Gerrit-Comment-Date: Fri, 02 Aug 2019 21:53:12 +0000

                                                                          Gobot Gobot (Gerrit)

                                                                          unread,
                                                                          Aug 2, 2019, 5:54:33 PM8/2/19
                                                                          to Austin Clements, goph...@pubsubhelper.golang.org, David Chase, Damien Neil, Joe Tsai, Rick Hudson, Ian Lance Taylor, golang-co...@googlegroups.com

                                                                          TryBots beginning. Status page: https://farmer.golang.org/try?commit=544f5c5c

                                                                          View Change

                                                                            To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

                                                                            Gerrit-Project: go
                                                                            Gerrit-Branch: master
                                                                            Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                                                            Gerrit-Change-Number: 46751
                                                                            Gerrit-PatchSet: 16
                                                                            Gerrit-Owner: Austin Clements <aus...@google.com>
                                                                            Gerrit-Reviewer: Austin Clements <aus...@google.com>
                                                                            Gerrit-Reviewer: David Chase <drc...@google.com>
                                                                            Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
                                                                            Gerrit-Reviewer: Rick Hudson <r...@golang.org>
                                                                            Gerrit-CC: Damien Neil <dn...@google.com>
                                                                            Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
                                                                            Gerrit-CC: Joe Tsai <joe...@google.com>
                                                                            Gerrit-Comment-Date: Fri, 02 Aug 2019 21:54:28 +0000

                                                                            Gobot Gobot (Gerrit)

                                                                            unread,
                                                                            Aug 2, 2019, 6:04:38 PM8/2/19
                                                                            to Austin Clements, goph...@pubsubhelper.golang.org, David Chase, Damien Neil, Joe Tsai, Rick Hudson, Ian Lance Taylor, golang-co...@googlegroups.com

                                                                            TryBots are happy.

                                                                            Patch set 16:TryBot-Result +1

                                                                            View Change

                                                                              To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

                                                                              Gerrit-Project: go
                                                                              Gerrit-Branch: master
                                                                              Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                                                              Gerrit-Change-Number: 46751
                                                                              Gerrit-PatchSet: 16
                                                                              Gerrit-Owner: Austin Clements <aus...@google.com>
                                                                              Gerrit-Reviewer: Austin Clements <aus...@google.com>
                                                                              Gerrit-Reviewer: David Chase <drc...@google.com>
                                                                              Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
                                                                              Gerrit-Reviewer: Rick Hudson <r...@golang.org>
                                                                              Gerrit-CC: Damien Neil <dn...@google.com>
                                                                              Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
                                                                              Gerrit-CC: Joe Tsai <joe...@google.com>
                                                                              Gerrit-Comment-Date: Fri, 02 Aug 2019 22:04:31 +0000

                                                                              Austin Clements (Gerrit)

                                                                              unread,
                                                                              Aug 2, 2019, 6:09:47 PM8/2/19
                                                                              to Austin Clements, goph...@pubsubhelper.golang.org, Gobot Gobot, David Chase, Damien Neil, Joe Tsai, Rick Hudson, Ian Lance Taylor, golang-co...@googlegroups.com

                                                                              Hmm. I tried merging in CL 183317, but all.bash is failing, so I have to debug that.

                                                                              View Change

                                                                                To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

                                                                                Gerrit-Project: go
                                                                                Gerrit-Branch: master
                                                                                Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                                                                Gerrit-Change-Number: 46751
                                                                                Gerrit-PatchSet: 16
                                                                                Gerrit-Owner: Austin Clements <aus...@google.com>
                                                                                Gerrit-Reviewer: Austin Clements <aus...@google.com>
                                                                                Gerrit-Reviewer: David Chase <drc...@google.com>
                                                                                Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
                                                                                Gerrit-Reviewer: Rick Hudson <r...@golang.org>
                                                                                Gerrit-CC: Damien Neil <dn...@google.com>
                                                                                Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
                                                                                Gerrit-CC: Joe Tsai <joe...@google.com>
                                                                                Gerrit-Comment-Date: Fri, 02 Aug 2019 22:09:44 +0000

                                                                                Austin Clements (Gerrit)

                                                                                unread,
                                                                                Aug 2, 2019, 7:17:10 PM8/2/19
                                                                                to Austin Clements, Gobot Gobot, David Chase, Rick Hudson, goph...@pubsubhelper.golang.org, Damien Neil, Ian Lance Taylor, Joe Tsai, golang-co...@googlegroups.com

                                                                                Austin Clements uploaded patch set #17 to this change.

                                                                                View Change

                                                                                runtime/debug: add SetMaxHeap API

                                                                                DO NOT SUBMIT. This is an experiment to get some experience with the
                                                                                API and figure out if this is even a reasonable primitive.

                                                                                This adds an API to set a soft limit on the heap size. This augments
                                                                                the existing GOGC-based GC policy by using the lower of the
                                                                                GOGC-computed GC target and the heap limit.

                                                                                When the garbage collector is bounded by the heap limit, it can no
                                                                                longer amortize the cost of garbage collection against the cost of
                                                                                growing the heap. Hence, callers of this API are required to register
                                                                                for notifications of when the garbage collector is under pressure and
                                                                                are strongly encouraged/expected to use this signal to shed load.

                                                                                This CL incorporates fixes from CL 151540, CL 156917, and CL 183317 by

                                                                                mkny...@google.com.

                                                                                Updates #16843.

                                                                                Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                                                                ---
                                                                                M src/runtime/debug/garbage.go
                                                                                M src/runtime/debug/garbage_test.go
                                                                                M src/runtime/mgc.go
                                                                                M src/runtime/mstats.go
                                                                                4 files changed, 420 insertions(+), 19 deletions(-)

                                                                                To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

                                                                                Gerrit-Project: go
                                                                                Gerrit-Branch: master
                                                                                Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                                                                Gerrit-Change-Number: 46751
                                                                                Gerrit-PatchSet: 17
                                                                                Gerrit-Owner: Austin Clements <aus...@google.com>
                                                                                Gerrit-Reviewer: Austin Clements <aus...@google.com>
                                                                                Gerrit-Reviewer: David Chase <drc...@google.com>
                                                                                Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
                                                                                Gerrit-Reviewer: Rick Hudson <r...@golang.org>
                                                                                Gerrit-CC: Damien Neil <dn...@google.com>
                                                                                Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
                                                                                Gerrit-CC: Joe Tsai <joe...@google.com>
                                                                                Gerrit-MessageType: newpatchset

                                                                                Gobot Gobot (Gerrit)

                                                                                unread,
                                                                                Aug 2, 2019, 7:17:26 PM8/2/19
                                                                                to Austin Clements, goph...@pubsubhelper.golang.org, David Chase, Damien Neil, Joe Tsai, Rick Hudson, Ian Lance Taylor, golang-co...@googlegroups.com

                                                                                TryBots beginning. Status page: https://farmer.golang.org/try?commit=0d7c0325

                                                                                View Change

                                                                                  To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

                                                                                  Gerrit-Project: go
                                                                                  Gerrit-Branch: master
                                                                                  Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                                                                  Gerrit-Change-Number: 46751
                                                                                  Gerrit-PatchSet: 17
                                                                                  Gerrit-Owner: Austin Clements <aus...@google.com>
                                                                                  Gerrit-Reviewer: Austin Clements <aus...@google.com>
                                                                                  Gerrit-Reviewer: David Chase <drc...@google.com>
                                                                                  Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
                                                                                  Gerrit-Reviewer: Rick Hudson <r...@golang.org>
                                                                                  Gerrit-CC: Damien Neil <dn...@google.com>
                                                                                  Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
                                                                                  Gerrit-CC: Joe Tsai <joe...@google.com>
                                                                                  Gerrit-Comment-Date: Fri, 02 Aug 2019 23:17:22 +0000

                                                                                  Austin Clements (Gerrit)

                                                                                  unread,
                                                                                  Aug 2, 2019, 7:23:00 PM8/2/19
                                                                                  to Austin Clements, goph...@pubsubhelper.golang.org, Gobot Gobot, David Chase, Damien Neil, Joe Tsai, Rick Hudson, Ian Lance Taylor, golang-co...@googlegroups.com

                                                                                  PS17 incorporates Michael's fixes from CL 183317 (plus a minor fix to his fixes)

                                                                                  View Change

                                                                                    To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

                                                                                    Gerrit-Project: go
                                                                                    Gerrit-Branch: master
                                                                                    Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                                                                    Gerrit-Change-Number: 46751
                                                                                    Gerrit-PatchSet: 17
                                                                                    Gerrit-Owner: Austin Clements <aus...@google.com>
                                                                                    Gerrit-Reviewer: Austin Clements <aus...@google.com>
                                                                                    Gerrit-Reviewer: David Chase <drc...@google.com>
                                                                                    Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
                                                                                    Gerrit-Reviewer: Rick Hudson <r...@golang.org>
                                                                                    Gerrit-CC: Damien Neil <dn...@google.com>
                                                                                    Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
                                                                                    Gerrit-CC: Joe Tsai <joe...@google.com>
                                                                                    Gerrit-Comment-Date: Fri, 02 Aug 2019 23:22:57 +0000

                                                                                    Gobot Gobot (Gerrit)

                                                                                    unread,
                                                                                    Aug 2, 2019, 7:31:29 PM8/2/19
                                                                                    to Austin Clements, goph...@pubsubhelper.golang.org, David Chase, Damien Neil, Joe Tsai, Rick Hudson, Ian Lance Taylor, golang-co...@googlegroups.com

                                                                                    1 of 21 TryBots failed:
                                                                                    Failed on windows-amd64-2016: https://storage.googleapis.com/go-build-log/0d7c0325/windows-amd64-2016_ba2c4b74.log

                                                                                    Consult https://build.golang.org/ to see whether they are new failures. Keep in mind that TryBots currently test *exactly* your git commit, without rebasing. If your commit's git parent is old, the failure might've already been fixed.

                                                                                    Patch set 17:TryBot-Result -1

                                                                                    View Change

                                                                                      To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

                                                                                      Gerrit-Project: go
                                                                                      Gerrit-Branch: master
                                                                                      Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                                                                      Gerrit-Change-Number: 46751
                                                                                      Gerrit-PatchSet: 17
                                                                                      Gerrit-Owner: Austin Clements <aus...@google.com>
                                                                                      Gerrit-Reviewer: Austin Clements <aus...@google.com>
                                                                                      Gerrit-Reviewer: David Chase <drc...@google.com>
                                                                                      Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
                                                                                      Gerrit-Reviewer: Rick Hudson <r...@golang.org>
                                                                                      Gerrit-CC: Damien Neil <dn...@google.com>
                                                                                      Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
                                                                                      Gerrit-CC: Joe Tsai <joe...@google.com>
                                                                                      Gerrit-Comment-Date: Fri, 02 Aug 2019 23:31:25 +0000

                                                                                      Austin Clements (Gerrit)

                                                                                      unread,
                                                                                      Aug 2, 2019, 7:50:32 PM8/2/19
                                                                                      to Austin Clements, goph...@pubsubhelper.golang.org, Gobot Gobot, David Chase, Damien Neil, Joe Tsai, Rick Hudson, Ian Lance Taylor, golang-co...@googlegroups.com

                                                                                      Patch Set 17: TryBot-Result-1

                                                                                      I can't reproduce this timeout locally on linux/amd64. I'm going to try re-running the trybots.

                                                                                      View Change

                                                                                        To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

                                                                                        Gerrit-Project: go
                                                                                        Gerrit-Branch: master
                                                                                        Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                                                                        Gerrit-Change-Number: 46751
                                                                                        Gerrit-PatchSet: 17
                                                                                        Gerrit-Owner: Austin Clements <aus...@google.com>
                                                                                        Gerrit-Reviewer: Austin Clements <aus...@google.com>
                                                                                        Gerrit-Reviewer: David Chase <drc...@google.com>
                                                                                        Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
                                                                                        Gerrit-Reviewer: Rick Hudson <r...@golang.org>
                                                                                        Gerrit-CC: Damien Neil <dn...@google.com>
                                                                                        Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
                                                                                        Gerrit-CC: Joe Tsai <joe...@google.com>
                                                                                        Gerrit-Comment-Date: Fri, 02 Aug 2019 23:50:29 +0000

                                                                                        Austin Clements (Gerrit)

                                                                                        unread,
                                                                                        Aug 2, 2019, 7:50:36 PM8/2/19
                                                                                        to Austin Clements, goph...@pubsubhelper.golang.org, Gobot Gobot, David Chase, Damien Neil, Joe Tsai, Rick Hudson, Ian Lance Taylor, golang-co...@googlegroups.com

                                                                                        Austin Clements removed a vote from this change.

                                                                                        View Change

                                                                                        Removed TryBot-Result-1 by Gobot Gobot <go...@golang.org>

                                                                                        To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

                                                                                        Gerrit-Project: go
                                                                                        Gerrit-Branch: master
                                                                                        Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                                                                        Gerrit-Change-Number: 46751
                                                                                        Gerrit-PatchSet: 17
                                                                                        Gerrit-Owner: Austin Clements <aus...@google.com>
                                                                                        Gerrit-Reviewer: Austin Clements <aus...@google.com>
                                                                                        Gerrit-Reviewer: David Chase <drc...@google.com>
                                                                                        Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
                                                                                        Gerrit-Reviewer: Rick Hudson <r...@golang.org>
                                                                                        Gerrit-CC: Damien Neil <dn...@google.com>
                                                                                        Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
                                                                                        Gerrit-CC: Joe Tsai <joe...@google.com>
                                                                                        Gerrit-MessageType: deleteVote

                                                                                        Gobot Gobot (Gerrit)

                                                                                        unread,
                                                                                        Aug 2, 2019, 8:04:10 PM8/2/19
                                                                                        to Austin Clements, goph...@pubsubhelper.golang.org, David Chase, Damien Neil, Joe Tsai, Rick Hudson, Ian Lance Taylor, golang-co...@googlegroups.com

                                                                                        TryBots are happy.

                                                                                        Patch set 17:TryBot-Result +1

                                                                                        View Change

                                                                                          To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

                                                                                          Gerrit-Project: go
                                                                                          Gerrit-Branch: master
                                                                                          Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                                                                          Gerrit-Change-Number: 46751
                                                                                          Gerrit-PatchSet: 17
                                                                                          Gerrit-Owner: Austin Clements <aus...@google.com>
                                                                                          Gerrit-Reviewer: Austin Clements <aus...@google.com>
                                                                                          Gerrit-Reviewer: David Chase <drc...@google.com>
                                                                                          Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
                                                                                          Gerrit-Reviewer: Rick Hudson <r...@golang.org>
                                                                                          Gerrit-CC: Damien Neil <dn...@google.com>
                                                                                          Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
                                                                                          Gerrit-CC: Joe Tsai <joe...@google.com>
                                                                                          Gerrit-Comment-Date: Sat, 03 Aug 2019 00:04:06 +0000

                                                                                          Caleb Spare (Gerrit)

                                                                                          unread,
                                                                                          Aug 2, 2019, 8:39:38 PM8/2/19
                                                                                          to Austin Clements, goph...@pubsubhelper.golang.org, Gobot Gobot, David Chase, Damien Neil, Joe Tsai, Rick Hudson, Ian Lance Taylor, golang-co...@googlegroups.com

                                                                                          FWIW I reviewed the API+documentation and it makes sense to me as a user.

                                                                                          Patch set 17:Code-Review +1

                                                                                          View Change

                                                                                          2 comments:

                                                                                          To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

                                                                                          Gerrit-Project: go
                                                                                          Gerrit-Branch: master
                                                                                          Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                                                                          Gerrit-Change-Number: 46751
                                                                                          Gerrit-PatchSet: 17
                                                                                          Gerrit-Owner: Austin Clements <aus...@google.com>
                                                                                          Gerrit-Reviewer: Austin Clements <aus...@google.com>
                                                                                          Gerrit-Reviewer: Caleb Spare <ces...@gmail.com>
                                                                                          Gerrit-Reviewer: David Chase <drc...@google.com>
                                                                                          Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
                                                                                          Gerrit-Reviewer: Rick Hudson <r...@golang.org>
                                                                                          Gerrit-CC: Damien Neil <dn...@google.com>
                                                                                          Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
                                                                                          Gerrit-CC: Joe Tsai <joe...@google.com>
                                                                                          Gerrit-Comment-Date: Sat, 03 Aug 2019 00:39:32 +0000
                                                                                          Gerrit-HasComments: Yes
                                                                                          Gerrit-Has-Labels: Yes
                                                                                          Gerrit-MessageType: comment

                                                                                          Austin Clements (Gerrit)

                                                                                          unread,
                                                                                          Aug 3, 2019, 3:39:57 PM8/3/19
                                                                                          to Austin Clements, goph...@pubsubhelper.golang.org, Caleb Spare, Gobot Gobot, David Chase, Damien Neil, Joe Tsai, Rick Hudson, Ian Lance Taylor, golang-co...@googlegroups.com

                                                                                          Austin Clements removed a vote from this change.

                                                                                          View Change

                                                                                          Removed TryBot-Result+1 by Gobot Gobot <go...@golang.org>

                                                                                          To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

                                                                                          Gerrit-Project: go
                                                                                          Gerrit-Branch: master
                                                                                          Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                                                                          Gerrit-Change-Number: 46751
                                                                                          Gerrit-PatchSet: 17
                                                                                          Gerrit-Owner: Austin Clements <aus...@google.com>
                                                                                          Gerrit-Reviewer: Austin Clements <aus...@google.com>
                                                                                          Gerrit-Reviewer: Caleb Spare <ces...@gmail.com>
                                                                                          Gerrit-Reviewer: David Chase <drc...@google.com>
                                                                                          Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
                                                                                          Gerrit-Reviewer: Rick Hudson <r...@golang.org>
                                                                                          Gerrit-CC: Damien Neil <dn...@google.com>
                                                                                          Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
                                                                                          Gerrit-CC: Joe Tsai <joe...@google.com>
                                                                                          Gerrit-MessageType: deleteVote

                                                                                          Gobot Gobot (Gerrit)

                                                                                          unread,
                                                                                          Aug 3, 2019, 3:47:55 PM8/3/19
                                                                                          to Austin Clements, goph...@pubsubhelper.golang.org, Caleb Spare, David Chase, Damien Neil, Joe Tsai, Rick Hudson, Ian Lance Taylor, golang-co...@googlegroups.com

                                                                                          Build is still in progress...
                                                                                          This change failed on openbsd-amd64-64:
                                                                                          See https://storage.googleapis.com/go-build-log/0d7c0325/openbsd-amd64-64_eb9a9dd3.log

                                                                                          Other builds still in progress; subsequent failure notices suppressed until final report. Consult https://build.golang.org/ to see whether they are new failures. Keep in mind that TryBots currently test *exactly* your git commit, without rebasing. If your commit's git parent is old, the failure might've already been fixed.

                                                                                          View Change

                                                                                            To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

                                                                                            Gerrit-Project: go
                                                                                            Gerrit-Branch: master
                                                                                            Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                                                                            Gerrit-Change-Number: 46751
                                                                                            Gerrit-PatchSet: 17
                                                                                            Gerrit-Owner: Austin Clements <aus...@google.com>
                                                                                            Gerrit-Reviewer: Austin Clements <aus...@google.com>
                                                                                            Gerrit-Reviewer: Caleb Spare <ces...@gmail.com>
                                                                                            Gerrit-Reviewer: David Chase <drc...@google.com>
                                                                                            Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
                                                                                            Gerrit-Reviewer: Rick Hudson <r...@golang.org>
                                                                                            Gerrit-CC: Damien Neil <dn...@google.com>
                                                                                            Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
                                                                                            Gerrit-CC: Joe Tsai <joe...@google.com>
                                                                                            Gerrit-Comment-Date: Sat, 03 Aug 2019 19:47:47 +0000

                                                                                            Gobot Gobot (Gerrit)

                                                                                            unread,
                                                                                            Aug 3, 2019, 3:50:34 PM8/3/19
                                                                                            to Austin Clements, goph...@pubsubhelper.golang.org, Caleb Spare, David Chase, Damien Neil, Joe Tsai, Rick Hudson, Ian Lance Taylor, golang-co...@googlegroups.com

                                                                                            1 of 21 TryBots failed:

                                                                                            Failed on openbsd-amd64-64: https://storage.googleapis.com/go-build-log/0d7c0325/openbsd-amd64-64_eb9a9dd3.log

                                                                                            Consult https://build.golang.org/ to see whether they are new failures. Keep in mind that TryBots currently test *exactly* your git commit, without rebasing. If your commit's git parent is old, the failure might've already been fixed.

                                                                                            Patch set 17:TryBot-Result -1

                                                                                            View Change

                                                                                              To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

                                                                                              Gerrit-Project: go
                                                                                              Gerrit-Branch: master
                                                                                              Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                                                                              Gerrit-Change-Number: 46751
                                                                                              Gerrit-PatchSet: 17
                                                                                              Gerrit-Owner: Austin Clements <aus...@google.com>
                                                                                              Gerrit-Reviewer: Austin Clements <aus...@google.com>
                                                                                              Gerrit-Reviewer: Caleb Spare <ces...@gmail.com>
                                                                                              Gerrit-Reviewer: David Chase <drc...@google.com>
                                                                                              Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
                                                                                              Gerrit-Reviewer: Rick Hudson <r...@golang.org>
                                                                                              Gerrit-CC: Damien Neil <dn...@google.com>
                                                                                              Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
                                                                                              Gerrit-CC: Joe Tsai <joe...@google.com>
                                                                                              Gerrit-Comment-Date: Sat, 03 Aug 2019 19:50:30 +0000

                                                                                              Austin Clements (Gerrit)

                                                                                              unread,
                                                                                              Aug 6, 2019, 12:08:37 PM8/6/19
                                                                                              to Austin Clements, goph...@pubsubhelper.golang.org, Gobot Gobot, Caleb Spare, David Chase, Damien Neil, Joe Tsai, Rick Hudson, Ian Lance Taylor, golang-co...@googlegroups.com

                                                                                              Patch Set 17: TryBot-Result-1

                                                                                              I wrote a super silly dynamic lock cycle detector for runtime locks, pointed it at the TestAvailGCPercent, and found that we do both:

                                                                                              • Acquire mheap_.lock in setGCPercent (also gcSetMaxHeap) and then gcPressure.lock in gcSetTriggerRatio.
                                                                                              • Acquire gcPressure.lock on the G stack and then call functions that may grow the stack, which may acquire mheap_.lock.

                                                                                              If both happened at the same time, it could deadlock. I suspect that it's not showing up on linux/amd64 because we happen to not grow the stack while holding gcPressure.lock. In fact, in my local testing, this is exactly what I see. But the stack is a slightly different size at this point on some trybots, so they exhibit the problem.

                                                                                              View Change

                                                                                                To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

                                                                                                Gerrit-Project: go
                                                                                                Gerrit-Branch: master
                                                                                                Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                                                                                Gerrit-Change-Number: 46751
                                                                                                Gerrit-PatchSet: 17
                                                                                                Gerrit-Owner: Austin Clements <aus...@google.com>
                                                                                                Gerrit-Reviewer: Austin Clements <aus...@google.com>
                                                                                                Gerrit-Reviewer: Caleb Spare <ces...@gmail.com>
                                                                                                Gerrit-Reviewer: David Chase <drc...@google.com>
                                                                                                Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
                                                                                                Gerrit-Reviewer: Rick Hudson <r...@golang.org>
                                                                                                Gerrit-CC: Damien Neil <dn...@google.com>
                                                                                                Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
                                                                                                Gerrit-CC: Joe Tsai <joe...@google.com>
                                                                                                Gerrit-Comment-Date: Tue, 06 Aug 2019 16:08:33 +0000

                                                                                                Austin Clements (Gerrit)

                                                                                                unread,
                                                                                                Aug 7, 2019, 4:11:07 PM8/7/19
                                                                                                to Austin Clements, Caleb Spare, Gobot Gobot, David Chase, Rick Hudson, goph...@pubsubhelper.golang.org, Damien Neil, Ian Lance Taylor, Joe Tsai, golang-co...@googlegroups.com

                                                                                                Austin Clements uploaded patch set #18 to this change.

                                                                                                View Change

                                                                                                runtime/debug: add SetMaxHeap API

                                                                                                DO NOT SUBMIT. This is an experiment to get some experience with the
                                                                                                API and figure out if this is even a reasonable primitive.

                                                                                                This adds an API to set a soft limit on the heap size. This augments
                                                                                                the existing GOGC-based GC policy by using the lower of the
                                                                                                GOGC-computed GC target and the heap limit.

                                                                                                When the garbage collector is bounded by the heap limit, it can no
                                                                                                longer amortize the cost of garbage collection against the cost of
                                                                                                growing the heap. Hence, callers of this API are required to register
                                                                                                for notifications of when the garbage collector is under pressure and
                                                                                                are strongly encouraged/expected to use this signal to shed load.

                                                                                                This CL incorporates fixes from CL 151540, CL 156917, and CL 183317 by
                                                                                                mkny...@google.com.

                                                                                                Updates #16843.

                                                                                                Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                                                                                ---
                                                                                                M src/runtime/debug/garbage.go
                                                                                                M src/runtime/debug/garbage_test.go
                                                                                                M src/runtime/mgc.go
                                                                                                M src/runtime/mstats.go
                                                                                                4 files changed, 438 insertions(+), 19 deletions(-)

                                                                                                To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

                                                                                                Gerrit-Project: go
                                                                                                Gerrit-Branch: master
                                                                                                Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                                                                                Gerrit-Change-Number: 46751
                                                                                                Gerrit-PatchSet: 18
                                                                                                Gerrit-Owner: Austin Clements <aus...@google.com>
                                                                                                Gerrit-Reviewer: Austin Clements <aus...@google.com>
                                                                                                Gerrit-Reviewer: Caleb Spare <ces...@gmail.com>
                                                                                                Gerrit-Reviewer: David Chase <drc...@google.com>
                                                                                                Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
                                                                                                Gerrit-Reviewer: Rick Hudson <r...@golang.org>
                                                                                                Gerrit-CC: Damien Neil <dn...@google.com>
                                                                                                Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
                                                                                                Gerrit-CC: Joe Tsai <joe...@google.com>
                                                                                                Gerrit-MessageType: newpatchset

                                                                                                Gobot Gobot (Gerrit)

                                                                                                unread,
                                                                                                Aug 7, 2019, 4:11:33 PM8/7/19
                                                                                                to Austin Clements, goph...@pubsubhelper.golang.org, Caleb Spare, David Chase, Damien Neil, Joe Tsai, Rick Hudson, Ian Lance Taylor, golang-co...@googlegroups.com

                                                                                                TryBots beginning. Status page: https://farmer.golang.org/try?commit=24c576be

                                                                                                View Change

                                                                                                  To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

                                                                                                  Gerrit-Project: go
                                                                                                  Gerrit-Branch: master
                                                                                                  Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                                                                                  Gerrit-Change-Number: 46751
                                                                                                  Gerrit-PatchSet: 18
                                                                                                  Gerrit-Owner: Austin Clements <aus...@google.com>
                                                                                                  Gerrit-Reviewer: Austin Clements <aus...@google.com>
                                                                                                  Gerrit-Reviewer: Caleb Spare <ces...@gmail.com>
                                                                                                  Gerrit-Reviewer: David Chase <drc...@google.com>
                                                                                                  Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
                                                                                                  Gerrit-Reviewer: Rick Hudson <r...@golang.org>
                                                                                                  Gerrit-CC: Damien Neil <dn...@google.com>
                                                                                                  Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
                                                                                                  Gerrit-CC: Joe Tsai <joe...@google.com>
                                                                                                  Gerrit-Comment-Date: Wed, 07 Aug 2019 20:11:30 +0000

                                                                                                  Gobot Gobot (Gerrit)

                                                                                                  unread,
                                                                                                  Aug 7, 2019, 4:19:12 PM8/7/19
                                                                                                  to Austin Clements, goph...@pubsubhelper.golang.org, Caleb Spare, David Chase, Damien Neil, Joe Tsai, Rick Hudson, Ian Lance Taylor, golang-co...@googlegroups.com

                                                                                                  Build is still in progress...

                                                                                                  This change failed on linux-amd64-race:
                                                                                                  See https://storage.googleapis.com/go-build-log/24c576be/linux-amd64-race_2a8e896f.log

                                                                                                  Other builds still in progress; subsequent failure notices suppressed until final report. Consult https://build.golang.org/ to see whether they are new failures. Keep in mind that TryBots currently test *exactly* your git commit, without rebasing. If your commit's git parent is old, the failure might've already been fixed.

                                                                                                  View Change

                                                                                                    To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

                                                                                                    Gerrit-Project: go
                                                                                                    Gerrit-Branch: master
                                                                                                    Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                                                                                    Gerrit-Change-Number: 46751
                                                                                                    Gerrit-PatchSet: 18
                                                                                                    Gerrit-Owner: Austin Clements <aus...@google.com>
                                                                                                    Gerrit-Reviewer: Austin Clements <aus...@google.com>
                                                                                                    Gerrit-Reviewer: Caleb Spare <ces...@gmail.com>
                                                                                                    Gerrit-Reviewer: David Chase <drc...@google.com>
                                                                                                    Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
                                                                                                    Gerrit-Reviewer: Rick Hudson <r...@golang.org>
                                                                                                    Gerrit-CC: Damien Neil <dn...@google.com>
                                                                                                    Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
                                                                                                    Gerrit-CC: Joe Tsai <joe...@google.com>
                                                                                                    Gerrit-Comment-Date: Wed, 07 Aug 2019 20:19:09 +0000

                                                                                                    Gobot Gobot (Gerrit)

                                                                                                    unread,
                                                                                                    Aug 7, 2019, 4:21:51 PM8/7/19
                                                                                                    to Austin Clements, goph...@pubsubhelper.golang.org, Caleb Spare, David Chase, Damien Neil, Joe Tsai, Rick Hudson, Ian Lance Taylor, golang-co...@googlegroups.com

                                                                                                    1 of 21 TryBots failed:

                                                                                                    Failed on linux-amd64-race: https://storage.googleapis.com/go-build-log/24c576be/linux-amd64-race_2a8e896f.log

                                                                                                    Consult https://build.golang.org/ to see whether they are new failures. Keep in mind that TryBots currently test *exactly* your git commit, without rebasing. If your commit's git parent is old, the failure might've already been fixed.

                                                                                                    Patch set 18:TryBot-Result -1

                                                                                                    View Change

                                                                                                      To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

                                                                                                      Gerrit-Project: go
                                                                                                      Gerrit-Branch: master
                                                                                                      Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                                                                                      Gerrit-Change-Number: 46751
                                                                                                      Gerrit-PatchSet: 18
                                                                                                      Gerrit-Owner: Austin Clements <aus...@google.com>
                                                                                                      Gerrit-Reviewer: Austin Clements <aus...@google.com>
                                                                                                      Gerrit-Reviewer: Caleb Spare <ces...@gmail.com>
                                                                                                      Gerrit-Reviewer: David Chase <drc...@google.com>
                                                                                                      Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
                                                                                                      Gerrit-Reviewer: Rick Hudson <r...@golang.org>
                                                                                                      Gerrit-CC: Damien Neil <dn...@google.com>
                                                                                                      Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
                                                                                                      Gerrit-CC: Joe Tsai <joe...@google.com>
                                                                                                      Gerrit-Comment-Date: Wed, 07 Aug 2019 20:21:47 +0000

                                                                                                      Austin Clements (Gerrit)

                                                                                                      unread,
                                                                                                      Aug 7, 2019, 4:24:07 PM8/7/19
                                                                                                      to Austin Clements, goph...@pubsubhelper.golang.org, Gobot Gobot, Caleb Spare, David Chase, Damien Neil, Joe Tsai, Rick Hudson, Ian Lance Taylor, golang-co...@googlegroups.com

                                                                                                      PS18 should fix the locking discipline around mheap_.lock and gcPressure.lock to prevent deadlocks.

                                                                                                      View Change

                                                                                                        To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

                                                                                                        Gerrit-Project: go
                                                                                                        Gerrit-Branch: master
                                                                                                        Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                                                                                        Gerrit-Change-Number: 46751
                                                                                                        Gerrit-PatchSet: 18
                                                                                                        Gerrit-Owner: Austin Clements <aus...@google.com>
                                                                                                        Gerrit-Reviewer: Austin Clements <aus...@google.com>
                                                                                                        Gerrit-Reviewer: Caleb Spare <ces...@gmail.com>
                                                                                                        Gerrit-Reviewer: David Chase <drc...@google.com>
                                                                                                        Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
                                                                                                        Gerrit-Reviewer: Rick Hudson <r...@golang.org>
                                                                                                        Gerrit-CC: Damien Neil <dn...@google.com>
                                                                                                        Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
                                                                                                        Gerrit-CC: Joe Tsai <joe...@google.com>
                                                                                                        Gerrit-Comment-Date: Wed, 07 Aug 2019 20:24:01 +0000

                                                                                                        Austin Clements (Gerrit)

                                                                                                        unread,
                                                                                                        Aug 7, 2019, 4:24:35 PM8/7/19
                                                                                                        to Austin Clements, goph...@pubsubhelper.golang.org, Gobot Gobot, Caleb Spare, David Chase, Damien Neil, Joe Tsai, Rick Hudson, Ian Lance Taylor, golang-co...@googlegroups.com

                                                                                                        Patch Set 18: TryBot-Result-1

                                                                                                        Sigh. I guess you can't raceacquire on the system stack, which is unfortunate because we can't lock gcPressure.lock *not* on the system stack.

                                                                                                        View Change

                                                                                                          To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

                                                                                                          Gerrit-Project: go
                                                                                                          Gerrit-Branch: master
                                                                                                          Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                                                                                          Gerrit-Change-Number: 46751
                                                                                                          Gerrit-PatchSet: 18
                                                                                                          Gerrit-Owner: Austin Clements <aus...@google.com>
                                                                                                          Gerrit-Reviewer: Austin Clements <aus...@google.com>
                                                                                                          Gerrit-Reviewer: Caleb Spare <ces...@gmail.com>
                                                                                                          Gerrit-Reviewer: David Chase <drc...@google.com>
                                                                                                          Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
                                                                                                          Gerrit-Reviewer: Rick Hudson <r...@golang.org>
                                                                                                          Gerrit-CC: Damien Neil <dn...@google.com>
                                                                                                          Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
                                                                                                          Gerrit-CC: Joe Tsai <joe...@google.com>
                                                                                                          Gerrit-Comment-Date: Wed, 07 Aug 2019 20:24:32 +0000

                                                                                                          Austin Clements (Gerrit)

                                                                                                          unread,
                                                                                                          Aug 7, 2019, 4:43:57 PM8/7/19
                                                                                                          to Austin Clements, Caleb Spare, Gobot Gobot, David Chase, Rick Hudson, goph...@pubsubhelper.golang.org, Damien Neil, Ian Lance Taylor, Joe Tsai, golang-co...@googlegroups.com

                                                                                                          Austin Clements uploaded patch set #19 to this change.

                                                                                                          View Change

                                                                                                          runtime/debug: add SetMaxHeap API

                                                                                                          DO NOT SUBMIT. This is an experiment to get some experience with the
                                                                                                          API and figure out if this is even a reasonable primitive.

                                                                                                          This adds an API to set a soft limit on the heap size. This augments
                                                                                                          the existing GOGC-based GC policy by using the lower of the
                                                                                                          GOGC-computed GC target and the heap limit.

                                                                                                          When the garbage collector is bounded by the heap limit, it can no
                                                                                                          longer amortize the cost of garbage collection against the cost of
                                                                                                          growing the heap. Hence, callers of this API are required to register
                                                                                                          for notifications of when the garbage collector is under pressure and
                                                                                                          are strongly encouraged/expected to use this signal to shed load.

                                                                                                          This CL incorporates fixes from CL 151540, CL 156917, and CL 183317 by
                                                                                                          mkny...@google.com.

                                                                                                          Updates #16843.

                                                                                                          Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                                                                                          ---
                                                                                                          M src/runtime/debug/garbage.go
                                                                                                          M src/runtime/debug/garbage_test.go
                                                                                                          M src/runtime/mgc.go
                                                                                                          M src/runtime/mstats.go
                                                                                                          4 files changed, 439 insertions(+), 19 deletions(-)

                                                                                                          To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

                                                                                                          Gerrit-Project: go
                                                                                                          Gerrit-Branch: master
                                                                                                          Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                                                                                          Gerrit-Change-Number: 46751
                                                                                                          Gerrit-PatchSet: 19
                                                                                                          Gerrit-Owner: Austin Clements <aus...@google.com>
                                                                                                          Gerrit-Reviewer: Austin Clements <aus...@google.com>
                                                                                                          Gerrit-Reviewer: Caleb Spare <ces...@gmail.com>
                                                                                                          Gerrit-Reviewer: David Chase <drc...@google.com>
                                                                                                          Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
                                                                                                          Gerrit-Reviewer: Rick Hudson <r...@golang.org>
                                                                                                          Gerrit-CC: Damien Neil <dn...@google.com>
                                                                                                          Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
                                                                                                          Gerrit-CC: Joe Tsai <joe...@google.com>
                                                                                                          Gerrit-MessageType: newpatchset

                                                                                                          Gobot Gobot (Gerrit)

                                                                                                          unread,
                                                                                                          Aug 7, 2019, 4:44:16 PM8/7/19
                                                                                                          to Austin Clements, goph...@pubsubhelper.golang.org, Caleb Spare, David Chase, Damien Neil, Joe Tsai, Rick Hudson, Ian Lance Taylor, golang-co...@googlegroups.com

                                                                                                          TryBots beginning. Status page: https://farmer.golang.org/try?commit=47a79ba3

                                                                                                          View Change

                                                                                                            To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

                                                                                                            Gerrit-Project: go
                                                                                                            Gerrit-Branch: master
                                                                                                            Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                                                                                            Gerrit-Change-Number: 46751
                                                                                                            Gerrit-PatchSet: 19
                                                                                                            Gerrit-Owner: Austin Clements <aus...@google.com>
                                                                                                            Gerrit-Reviewer: Austin Clements <aus...@google.com>
                                                                                                            Gerrit-Reviewer: Caleb Spare <ces...@gmail.com>
                                                                                                            Gerrit-Reviewer: David Chase <drc...@google.com>
                                                                                                            Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
                                                                                                            Gerrit-Reviewer: Rick Hudson <r...@golang.org>
                                                                                                            Gerrit-CC: Damien Neil <dn...@google.com>
                                                                                                            Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
                                                                                                            Gerrit-CC: Joe Tsai <joe...@google.com>
                                                                                                            Gerrit-Comment-Date: Wed, 07 Aug 2019 20:44:12 +0000

                                                                                                            Gobot Gobot (Gerrit)

                                                                                                            unread,
                                                                                                            Aug 7, 2019, 4:55:23 PM8/7/19
                                                                                                            to Austin Clements, goph...@pubsubhelper.golang.org, Caleb Spare, David Chase, Damien Neil, Joe Tsai, Rick Hudson, Ian Lance Taylor, golang-co...@googlegroups.com

                                                                                                            TryBots are happy.

                                                                                                            Patch set 19:TryBot-Result +1

                                                                                                            View Change

                                                                                                              To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

                                                                                                              Gerrit-Project: go
                                                                                                              Gerrit-Branch: master
                                                                                                              Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                                                                                              Gerrit-Change-Number: 46751
                                                                                                              Gerrit-PatchSet: 19
                                                                                                              Gerrit-Owner: Austin Clements <aus...@google.com>
                                                                                                              Gerrit-Reviewer: Austin Clements <aus...@google.com>
                                                                                                              Gerrit-Reviewer: Caleb Spare <ces...@gmail.com>
                                                                                                              Gerrit-Reviewer: David Chase <drc...@google.com>
                                                                                                              Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
                                                                                                              Gerrit-Reviewer: Rick Hudson <r...@golang.org>
                                                                                                              Gerrit-CC: Damien Neil <dn...@google.com>
                                                                                                              Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
                                                                                                              Gerrit-CC: Joe Tsai <joe...@google.com>
                                                                                                              Gerrit-Comment-Date: Wed, 07 Aug 2019 20:55:19 +0000

                                                                                                              Austin Clements (Gerrit)

                                                                                                              unread,
                                                                                                              Aug 7, 2019, 4:56:03 PM8/7/19
                                                                                                              to Austin Clements, goph...@pubsubhelper.golang.org, Gobot Gobot, Caleb Spare, David Chase, Damien Neil, Joe Tsai, Rick Hudson, Ian Lance Taylor, golang-co...@googlegroups.com

                                                                                                              That's promising. Going to do one more run of the trybots.

                                                                                                              View Change

                                                                                                                To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

                                                                                                                Gerrit-Project: go
                                                                                                                Gerrit-Branch: master
                                                                                                                Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                                                                                                Gerrit-Change-Number: 46751
                                                                                                                Gerrit-PatchSet: 19
                                                                                                                Gerrit-Owner: Austin Clements <aus...@google.com>
                                                                                                                Gerrit-Reviewer: Austin Clements <aus...@google.com>
                                                                                                                Gerrit-Reviewer: Caleb Spare <ces...@gmail.com>
                                                                                                                Gerrit-Reviewer: David Chase <drc...@google.com>
                                                                                                                Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
                                                                                                                Gerrit-Reviewer: Rick Hudson <r...@golang.org>
                                                                                                                Gerrit-CC: Damien Neil <dn...@google.com>
                                                                                                                Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
                                                                                                                Gerrit-CC: Joe Tsai <joe...@google.com>
                                                                                                                Gerrit-Comment-Date: Wed, 07 Aug 2019 20:56:00 +0000

                                                                                                                Austin Clements (Gerrit)

                                                                                                                unread,
                                                                                                                Aug 7, 2019, 4:56:06 PM8/7/19
                                                                                                                to Austin Clements, goph...@pubsubhelper.golang.org, Gobot Gobot, Caleb Spare, David Chase, Damien Neil, Joe Tsai, Rick Hudson, Ian Lance Taylor, golang-co...@googlegroups.com

                                                                                                                Austin Clements removed a vote from this change.

                                                                                                                View Change

                                                                                                                Removed TryBot-Result+1 by Gobot Gobot <go...@golang.org>

                                                                                                                To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

                                                                                                                Gerrit-Project: go
                                                                                                                Gerrit-Branch: master
                                                                                                                Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                                                                                                Gerrit-Change-Number: 46751
                                                                                                                Gerrit-PatchSet: 19
                                                                                                                Gerrit-Owner: Austin Clements <aus...@google.com>
                                                                                                                Gerrit-Reviewer: Austin Clements <aus...@google.com>
                                                                                                                Gerrit-Reviewer: Caleb Spare <ces...@gmail.com>
                                                                                                                Gerrit-Reviewer: David Chase <drc...@google.com>
                                                                                                                Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
                                                                                                                Gerrit-Reviewer: Rick Hudson <r...@golang.org>
                                                                                                                Gerrit-CC: Damien Neil <dn...@google.com>
                                                                                                                Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
                                                                                                                Gerrit-CC: Joe Tsai <joe...@google.com>
                                                                                                                Gerrit-MessageType: deleteVote

                                                                                                                Gobot Gobot (Gerrit)

                                                                                                                unread,
                                                                                                                Aug 7, 2019, 5:06:51 PM8/7/19
                                                                                                                to Austin Clements, goph...@pubsubhelper.golang.org, Caleb Spare, David Chase, Damien Neil, Joe Tsai, Rick Hudson, Ian Lance Taylor, golang-co...@googlegroups.com

                                                                                                                TryBots are happy.

                                                                                                                Patch set 19:TryBot-Result +1

                                                                                                                View Change

                                                                                                                  To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

                                                                                                                  Gerrit-Project: go
                                                                                                                  Gerrit-Branch: master
                                                                                                                  Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                                                                                                  Gerrit-Change-Number: 46751
                                                                                                                  Gerrit-PatchSet: 19
                                                                                                                  Gerrit-Owner: Austin Clements <aus...@google.com>
                                                                                                                  Gerrit-Reviewer: Austin Clements <aus...@google.com>
                                                                                                                  Gerrit-Reviewer: Caleb Spare <ces...@gmail.com>
                                                                                                                  Gerrit-Reviewer: David Chase <drc...@google.com>
                                                                                                                  Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
                                                                                                                  Gerrit-Reviewer: Rick Hudson <r...@golang.org>
                                                                                                                  Gerrit-CC: Damien Neil <dn...@google.com>
                                                                                                                  Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
                                                                                                                  Gerrit-CC: Joe Tsai <joe...@google.com>
                                                                                                                  Gerrit-Comment-Date: Wed, 07 Aug 2019 21:06:45 +0000

                                                                                                                  wangde...@gmail.com

                                                                                                                  unread,
                                                                                                                  Oct 26, 2019, 11:16:40 AM10/26/19
                                                                                                                  to golang-codereviews
                                                                                                                  Hello, this method can reduce the frequency of GC in my application and improve the performance of the system.
                                                                                                                  Just curious, is this planned to be merged to dev?
                                                                                                                  Thank you.

                                                                                                                  Austin Clements (Gerrit)

                                                                                                                  unread,
                                                                                                                  Apr 3, 2020, 5:49:08 PM4/3/20
                                                                                                                  to Austin Clements, goph...@pubsubhelper.golang.org, Carlo Alberto Ferraris, mohamed Alisaleh, Gobot Gobot, Caleb Spare, David Chase, Damien Neil, Joe Tsai, Rick Hudson, Ian Lance Taylor, golang-co...@googlegroups.com

                                                                                                                  Austin Clements removed a vote from this change.

                                                                                                                  View Change

                                                                                                                  Removed Code-Review+2 by Rick Hudson <r...@golang.org>

                                                                                                                  To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

                                                                                                                  Gerrit-Project: go
                                                                                                                  Gerrit-Branch: master
                                                                                                                  Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                                                                                                  Gerrit-Change-Number: 46751
                                                                                                                  Gerrit-PatchSet: 19
                                                                                                                  Gerrit-Owner: Austin Clements <aus...@google.com>
                                                                                                                  Gerrit-Reviewer: Austin Clements <aus...@google.com>
                                                                                                                  Gerrit-Reviewer: Caleb Spare <ces...@gmail.com>
                                                                                                                  Gerrit-Reviewer: David Chase <drc...@google.com>
                                                                                                                  Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
                                                                                                                  Gerrit-Reviewer: Rick Hudson <r...@golang.org>
                                                                                                                  Gerrit-CC: Carlo Alberto Ferraris <ca...@strayorange.com>
                                                                                                                  Gerrit-CC: Damien Neil <dn...@google.com>
                                                                                                                  Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
                                                                                                                  Gerrit-CC: Joe Tsai <joe...@google.com>
                                                                                                                  Gerrit-CC: mohamed Alisaleh <mohamedal...@gmail.com>
                                                                                                                  Gerrit-MessageType: deleteVote

                                                                                                                  Austin Clements (Gerrit)

                                                                                                                  unread,
                                                                                                                  Apr 3, 2020, 5:49:35 PM4/3/20
                                                                                                                  to Austin Clements, Caleb Spare, Gobot Gobot, David Chase, Rick Hudson, goph...@pubsubhelper.golang.org, Carlo Alberto Ferraris, Damien Neil, Ian Lance Taylor, mohamed Alisaleh, Joe Tsai, golang-co...@googlegroups.com

                                                                                                                  Austin Clements uploaded patch set #20 to this change.

                                                                                                                  View Change

                                                                                                                  runtime/debug: add SetMaxHeap API

                                                                                                                  DO NOT SUBMIT. This is an experiment to get some experience with the
                                                                                                                  API and figure out if this is even a reasonable primitive.

                                                                                                                  This adds an API to set a soft limit on the heap size. This augments
                                                                                                                  the existing GOGC-based GC policy by using the lower of the
                                                                                                                  GOGC-computed GC target and the heap limit.

                                                                                                                  When the garbage collector is bounded by the heap limit, it can no
                                                                                                                  longer amortize the cost of garbage collection against the cost of
                                                                                                                  growing the heap. Hence, callers of this API are required to register
                                                                                                                  for notifications of when the garbage collector is under pressure and
                                                                                                                  are strongly encouraged/expected to use this signal to shed load.

                                                                                                                  This CL incorporates fixes from CL 151540, CL 156917, and CL 183317 by
                                                                                                                  mkny...@google.com.

                                                                                                                  Updates #16843.

                                                                                                                  Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                                                                                                  ---
                                                                                                                  M src/runtime/debug/garbage.go
                                                                                                                  M src/runtime/debug/garbage_test.go
                                                                                                                  M src/runtime/mgc.go
                                                                                                                  M src/runtime/mstats.go
                                                                                                                  4 files changed, 453 insertions(+), 38 deletions(-)

                                                                                                                  To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

                                                                                                                  Gerrit-Project: go
                                                                                                                  Gerrit-Branch: master
                                                                                                                  Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                                                                                                  Gerrit-Change-Number: 46751
                                                                                                                  Gerrit-PatchSet: 20
                                                                                                                  Gerrit-Owner: Austin Clements <aus...@google.com>
                                                                                                                  Gerrit-Reviewer: Austin Clements <aus...@google.com>
                                                                                                                  Gerrit-Reviewer: Caleb Spare <ces...@gmail.com>
                                                                                                                  Gerrit-Reviewer: David Chase <drc...@google.com>
                                                                                                                  Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
                                                                                                                  Gerrit-Reviewer: Rick Hudson <r...@golang.org>
                                                                                                                  Gerrit-CC: Carlo Alberto Ferraris <ca...@strayorange.com>
                                                                                                                  Gerrit-CC: Damien Neil <dn...@google.com>
                                                                                                                  Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
                                                                                                                  Gerrit-CC: Joe Tsai <joe...@google.com>
                                                                                                                  Gerrit-CC: mohamed Alisaleh <mohamedal...@gmail.com>
                                                                                                                  Gerrit-MessageType: newpatchset

                                                                                                                  Gobot Gobot (Gerrit)

                                                                                                                  unread,
                                                                                                                  Apr 3, 2020, 5:49:47 PM4/3/20
                                                                                                                  to Austin Clements, goph...@pubsubhelper.golang.org, Carlo Alberto Ferraris, mohamed Alisaleh, Caleb Spare, David Chase, Damien Neil, Joe Tsai, Rick Hudson, Ian Lance Taylor, golang-co...@googlegroups.com

                                                                                                                  TryBots beginning. Status page: https://farmer.golang.org/try?commit=e26186e1

                                                                                                                  View Change

                                                                                                                    To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

                                                                                                                    Gerrit-Project: go
                                                                                                                    Gerrit-Branch: master
                                                                                                                    Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                                                                                                    Gerrit-Change-Number: 46751
                                                                                                                    Gerrit-PatchSet: 20
                                                                                                                    Gerrit-Owner: Austin Clements <aus...@google.com>
                                                                                                                    Gerrit-Reviewer: Austin Clements <aus...@google.com>
                                                                                                                    Gerrit-Reviewer: Caleb Spare <ces...@gmail.com>
                                                                                                                    Gerrit-Reviewer: David Chase <drc...@google.com>
                                                                                                                    Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
                                                                                                                    Gerrit-Reviewer: Rick Hudson <r...@golang.org>
                                                                                                                    Gerrit-CC: Carlo Alberto Ferraris <ca...@strayorange.com>
                                                                                                                    Gerrit-CC: Damien Neil <dn...@google.com>
                                                                                                                    Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
                                                                                                                    Gerrit-CC: Joe Tsai <joe...@google.com>
                                                                                                                    Gerrit-CC: mohamed Alisaleh <mohamedal...@gmail.com>
                                                                                                                    Gerrit-Comment-Date: Fri, 03 Apr 2020 21:49:41 +0000

                                                                                                                    Gobot Gobot (Gerrit)

                                                                                                                    unread,
                                                                                                                    Apr 3, 2020, 5:50:17 PM4/3/20
                                                                                                                    to Austin Clements, goph...@pubsubhelper.golang.org, Carlo Alberto Ferraris, mohamed Alisaleh, Caleb Spare, David Chase, Damien Neil, Joe Tsai, Rick Hudson, Ian Lance Taylor, golang-co...@googlegroups.com

                                                                                                                    Build is still in progress...

                                                                                                                    This change failed on (x/tools) linux-amd64:
                                                                                                                    See https://storage.googleapis.com/go-build-log/e26186e1/linux-amd64_6adebbdf.log

                                                                                                                    Other builds still in progress; subsequent failure notices suppressed until final report. Consult https://build.golang.org/ to see whether they are new failures. Keep in mind that TryBots currently test *exactly* your git commit, without rebasing. If your commit's git parent is old, the failure might've already been fixed.

                                                                                                                    View Change

                                                                                                                      To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

                                                                                                                      Gerrit-Project: go
                                                                                                                      Gerrit-Branch: master
                                                                                                                      Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                                                                                                      Gerrit-Change-Number: 46751
                                                                                                                      Gerrit-PatchSet: 20
                                                                                                                      Gerrit-Owner: Austin Clements <aus...@google.com>
                                                                                                                      Gerrit-Reviewer: Austin Clements <aus...@google.com>
                                                                                                                      Gerrit-Reviewer: Caleb Spare <ces...@gmail.com>
                                                                                                                      Gerrit-Reviewer: David Chase <drc...@google.com>
                                                                                                                      Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
                                                                                                                      Gerrit-Reviewer: Rick Hudson <r...@golang.org>
                                                                                                                      Gerrit-CC: Carlo Alberto Ferraris <ca...@strayorange.com>
                                                                                                                      Gerrit-CC: Damien Neil <dn...@google.com>
                                                                                                                      Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
                                                                                                                      Gerrit-CC: Joe Tsai <joe...@google.com>
                                                                                                                      Gerrit-CC: mohamed Alisaleh <mohamedal...@gmail.com>
                                                                                                                      Gerrit-Comment-Date: Fri, 03 Apr 2020 21:50:13 +0000

                                                                                                                      Austin Clements (Gerrit)

                                                                                                                      unread,
                                                                                                                      Apr 3, 2020, 5:51:28 PM4/3/20
                                                                                                                      to Austin Clements, goph...@pubsubhelper.golang.org, Gobot Gobot, Carlo Alberto Ferraris, mohamed Alisaleh, Caleb Spare, David Chase, Damien Neil, Joe Tsai, Rick Hudson, Ian Lance Taylor, golang-co...@googlegroups.com

                                                                                                                      PS20 rebases on top of current master (mid-Go 1.15 dev). There was a conflict with CL 225637, which introduced the lower bound on the trigger ratio. It's not clear how to do the exact same logic, since that bound depends on gcpercent. This resolves it by applying an equivalent lower bound directly to the computed trigger (in bytes).

                                                                                                                      View Change

                                                                                                                        To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

                                                                                                                        Gerrit-Project: go
                                                                                                                        Gerrit-Branch: master
                                                                                                                        Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                                                                                                        Gerrit-Change-Number: 46751
                                                                                                                        Gerrit-PatchSet: 20
                                                                                                                        Gerrit-Owner: Austin Clements <aus...@google.com>
                                                                                                                        Gerrit-Reviewer: Austin Clements <aus...@google.com>
                                                                                                                        Gerrit-Reviewer: Caleb Spare <ces...@gmail.com>
                                                                                                                        Gerrit-Reviewer: David Chase <drc...@google.com>
                                                                                                                        Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
                                                                                                                        Gerrit-Reviewer: Rick Hudson <r...@golang.org>
                                                                                                                        Gerrit-CC: Carlo Alberto Ferraris <ca...@strayorange.com>
                                                                                                                        Gerrit-CC: Damien Neil <dn...@google.com>
                                                                                                                        Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
                                                                                                                        Gerrit-CC: Joe Tsai <joe...@google.com>
                                                                                                                        Gerrit-CC: mohamed Alisaleh <mohamedal...@gmail.com>
                                                                                                                        Gerrit-Comment-Date: Fri, 03 Apr 2020 21:51:24 +0000

                                                                                                                        Gobot Gobot (Gerrit)

                                                                                                                        unread,
                                                                                                                        Apr 3, 2020, 5:52:23 PM4/3/20
                                                                                                                        to Austin Clements, goph...@pubsubhelper.golang.org, Carlo Alberto Ferraris, mohamed Alisaleh, Caleb Spare, David Chase, Damien Neil, Joe Tsai, Rick Hudson, Ian Lance Taylor, golang-co...@googlegroups.com

                                                                                                                        20 of 20 TryBots failed:
                                                                                                                        Failed on (x/tools) linux-amd64: https://storage.googleapis.com/go-build-log/e26186e1/linux-amd64_6adebbdf.log
                                                                                                                        Failed on linux-amd64: https://storage.googleapis.com/go-build-log/e26186e1/linux-amd64_60978dc7.log
                                                                                                                        Failed on js-wasm: https://storage.googleapis.com/go-build-log/e26186e1/js-wasm_35ebdd2e.log
                                                                                                                        Failed on freebsd-amd64-12_0: https://storage.googleapis.com/go-build-log/e26186e1/freebsd-amd64-12_0_ad8f3361.log
                                                                                                                        Failed on misc-compile-linuxarm: https://storage.googleapis.com/go-build-log/e26186e1/misc-compile-linuxarm_106579c4.log
                                                                                                                        Failed on misc-compile-other: https://storage.googleapis.com/go-build-log/e26186e1/misc-compile-other_b4a2b478.log
                                                                                                                        Failed on misc-compile-netbsd: https://storage.googleapis.com/go-build-log/e26186e1/misc-compile-netbsd_59fb9524.log
                                                                                                                        Failed on misc-compile-solaris: https://storage.googleapis.com/go-build-log/e26186e1/misc-compile-solaris_ad96e09a.log
                                                                                                                        Failed on misc-compile-ppc: https://storage.googleapis.com/go-build-log/e26186e1/misc-compile-ppc_00cdd4ce.log
                                                                                                                        Failed on misc-compile-mips: https://storage.googleapis.com/go-build-log/e26186e1/misc-compile-mips_650a109e.log
                                                                                                                        Failed on misc-compile-plan9: https://storage.googleapis.com/go-build-log/e26186e1/misc-compile-plan9_9b3b9698.log
                                                                                                                        Failed on misc-compile-openbsd: https://storage.googleapis.com/go-build-log/e26186e1/misc-compile-openbsd_c51f6d71.log
                                                                                                                        Failed on openbsd-amd64-64: https://storage.googleapis.com/go-build-log/e26186e1/openbsd-amd64-64_891d5baa.log
                                                                                                                        Failed on windows-amd64-2016: https://storage.googleapis.com/go-build-log/e26186e1/windows-amd64-2016_7ba2fd1b.log
                                                                                                                        Failed on misc-compile-freebsd: https://storage.googleapis.com/go-build-log/e26186e1/misc-compile-freebsd_3cbd3cfa.log
                                                                                                                        Failed on misc-compile-darwin: https://storage.googleapis.com/go-build-log/e26186e1/misc-compile-darwin_5b8d5107.log
                                                                                                                        Failed on linux-amd64-race: https://storage.googleapis.com/go-build-log/e26186e1/linux-amd64-race_947a9e44.log
                                                                                                                        Failed on linux-386: https://storage.googleapis.com/go-build-log/e26186e1/linux-386_226e5823.log
                                                                                                                        Failed on android-amd64-emu: https://storage.googleapis.com/go-build-log/e26186e1/android-amd64-emu_87844744.log
                                                                                                                        Failed on windows-386-2008: https://storage.googleapis.com/go-build-log/e26186e1/windows-386-2008_03a571e1.log

                                                                                                                        Consult https://build.golang.org/ to see whether they are new failures. Keep in mind that TryBots currently test *exactly* your git commit, without rebasing. If your commit's git parent is old, the failure might've already been fixed.

                                                                                                                        Patch set 20:TryBot-Result -1

                                                                                                                        View Change

                                                                                                                          To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

                                                                                                                          Gerrit-Project: go
                                                                                                                          Gerrit-Branch: master
                                                                                                                          Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                                                                                                          Gerrit-Change-Number: 46751
                                                                                                                          Gerrit-PatchSet: 20
                                                                                                                          Gerrit-Owner: Austin Clements <aus...@google.com>
                                                                                                                          Gerrit-Reviewer: Austin Clements <aus...@google.com>
                                                                                                                          Gerrit-Reviewer: Caleb Spare <ces...@gmail.com>
                                                                                                                          Gerrit-Reviewer: David Chase <drc...@google.com>
                                                                                                                          Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
                                                                                                                          Gerrit-Reviewer: Rick Hudson <r...@golang.org>
                                                                                                                          Gerrit-CC: Carlo Alberto Ferraris <ca...@strayorange.com>
                                                                                                                          Gerrit-CC: Damien Neil <dn...@google.com>
                                                                                                                          Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
                                                                                                                          Gerrit-CC: Joe Tsai <joe...@google.com>
                                                                                                                          Gerrit-CC: mohamed Alisaleh <mohamedal...@gmail.com>
                                                                                                                          Gerrit-Comment-Date: Fri, 03 Apr 2020 21:52:19 +0000

                                                                                                                          Austin Clements (Gerrit)

                                                                                                                          unread,
                                                                                                                          Apr 3, 2020, 6:14:59 PM4/3/20
                                                                                                                          to Austin Clements, goph...@pubsubhelper.golang.org, Gobot Gobot, Carlo Alberto Ferraris, mohamed Alisaleh, Caleb Spare, David Chase, Damien Neil, Joe Tsai, Rick Hudson, Ian Lance Taylor, golang-co...@googlegroups.com

                                                                                                                          Sorry, rebase fail.

                                                                                                                          View Change

                                                                                                                            To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

                                                                                                                            Gerrit-Project: go
                                                                                                                            Gerrit-Branch: master
                                                                                                                            Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                                                                                                            Gerrit-Change-Number: 46751
                                                                                                                            Gerrit-PatchSet: 20
                                                                                                                            Gerrit-Owner: Austin Clements <aus...@google.com>
                                                                                                                            Gerrit-Reviewer: Austin Clements <aus...@google.com>
                                                                                                                            Gerrit-Reviewer: Caleb Spare <ces...@gmail.com>
                                                                                                                            Gerrit-Reviewer: David Chase <drc...@google.com>
                                                                                                                            Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
                                                                                                                            Gerrit-Reviewer: Rick Hudson <r...@golang.org>
                                                                                                                            Gerrit-CC: Carlo Alberto Ferraris <ca...@strayorange.com>
                                                                                                                            Gerrit-CC: Damien Neil <dn...@google.com>
                                                                                                                            Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
                                                                                                                            Gerrit-CC: Joe Tsai <joe...@google.com>
                                                                                                                            Gerrit-CC: mohamed Alisaleh <mohamedal...@gmail.com>
                                                                                                                            Gerrit-Comment-Date: Fri, 03 Apr 2020 22:14:53 +0000

                                                                                                                            Austin Clements (Gerrit)

                                                                                                                            unread,
                                                                                                                            Apr 3, 2020, 6:16:02 PM4/3/20
                                                                                                                            to Austin Clements, Caleb Spare, Gobot Gobot, David Chase, Rick Hudson, goph...@pubsubhelper.golang.org, Carlo Alberto Ferraris, Damien Neil, Ian Lance Taylor, mohamed Alisaleh, Joe Tsai, golang-co...@googlegroups.com

                                                                                                                            Austin Clements uploaded patch set #21 to this change.

                                                                                                                            View Change

                                                                                                                            runtime/debug: add SetMaxHeap API

                                                                                                                            DO NOT SUBMIT. This is an experiment to get some experience with the
                                                                                                                            API and figure out if this is even a reasonable primitive.

                                                                                                                            This adds an API to set a soft limit on the heap size. This augments
                                                                                                                            the existing GOGC-based GC policy by using the lower of the
                                                                                                                            GOGC-computed GC target and the heap limit.

                                                                                                                            When the garbage collector is bounded by the heap limit, it can no
                                                                                                                            longer amortize the cost of garbage collection against the cost of
                                                                                                                            growing the heap. Hence, callers of this API are required to register
                                                                                                                            for notifications of when the garbage collector is under pressure and
                                                                                                                            are strongly encouraged/expected to use this signal to shed load.

                                                                                                                            This CL incorporates fixes from CL 151540, CL 156917, and CL 183317 by
                                                                                                                            mkny...@google.com.

                                                                                                                            Updates #16843.

                                                                                                                            Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                                                                                                            ---
                                                                                                                            M src/runtime/debug/garbage.go
                                                                                                                            M src/runtime/debug/garbage_test.go
                                                                                                                            M src/runtime/mgc.go
                                                                                                                            M src/runtime/mstats.go
                                                                                                                            4 files changed, 453 insertions(+), 38 deletions(-)

                                                                                                                            To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

                                                                                                                            Gerrit-Project: go
                                                                                                                            Gerrit-Branch: master
                                                                                                                            Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                                                                                                            Gerrit-Change-Number: 46751
                                                                                                                            Gerrit-PatchSet: 21
                                                                                                                            Gerrit-Owner: Austin Clements <aus...@google.com>
                                                                                                                            Gerrit-Reviewer: Austin Clements <aus...@google.com>
                                                                                                                            Gerrit-Reviewer: Caleb Spare <ces...@gmail.com>
                                                                                                                            Gerrit-Reviewer: David Chase <drc...@google.com>
                                                                                                                            Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
                                                                                                                            Gerrit-Reviewer: Rick Hudson <r...@golang.org>
                                                                                                                            Gerrit-CC: Carlo Alberto Ferraris <ca...@strayorange.com>
                                                                                                                            Gerrit-CC: Damien Neil <dn...@google.com>
                                                                                                                            Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
                                                                                                                            Gerrit-CC: Joe Tsai <joe...@google.com>
                                                                                                                            Gerrit-CC: mohamed Alisaleh <mohamedal...@gmail.com>
                                                                                                                            Gerrit-MessageType: newpatchset

                                                                                                                            Gobot Gobot (Gerrit)

                                                                                                                            unread,
                                                                                                                            Apr 3, 2020, 6:16:15 PM4/3/20
                                                                                                                            to Austin Clements, goph...@pubsubhelper.golang.org, Carlo Alberto Ferraris, mohamed Alisaleh, Caleb Spare, David Chase, Damien Neil, Joe Tsai, Rick Hudson, Ian Lance Taylor, golang-co...@googlegroups.com

                                                                                                                            TryBots beginning. Status page: https://farmer.golang.org/try?commit=83b1ff0e

                                                                                                                            View Change

                                                                                                                              To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

                                                                                                                              Gerrit-Project: go
                                                                                                                              Gerrit-Branch: master
                                                                                                                              Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                                                                                                              Gerrit-Change-Number: 46751
                                                                                                                              Gerrit-PatchSet: 21
                                                                                                                              Gerrit-Owner: Austin Clements <aus...@google.com>
                                                                                                                              Gerrit-Reviewer: Austin Clements <aus...@google.com>
                                                                                                                              Gerrit-Reviewer: Caleb Spare <ces...@gmail.com>
                                                                                                                              Gerrit-Reviewer: David Chase <drc...@google.com>
                                                                                                                              Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
                                                                                                                              Gerrit-Reviewer: Rick Hudson <r...@golang.org>
                                                                                                                              Gerrit-CC: Carlo Alberto Ferraris <ca...@strayorange.com>
                                                                                                                              Gerrit-CC: Damien Neil <dn...@google.com>
                                                                                                                              Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
                                                                                                                              Gerrit-CC: Joe Tsai <joe...@google.com>
                                                                                                                              Gerrit-CC: mohamed Alisaleh <mohamedal...@gmail.com>
                                                                                                                              Gerrit-Comment-Date: Fri, 03 Apr 2020 22:16:11 +0000

                                                                                                                              Gobot Gobot (Gerrit)

                                                                                                                              unread,
                                                                                                                              Apr 3, 2020, 6:20:24 PM4/3/20
                                                                                                                              to Austin Clements, goph...@pubsubhelper.golang.org, Carlo Alberto Ferraris, mohamed Alisaleh, Caleb Spare, David Chase, Damien Neil, Joe Tsai, Rick Hudson, Ian Lance Taylor, golang-co...@googlegroups.com

                                                                                                                              Build is still in progress...

                                                                                                                              This change failed on freebsd-amd64-12_0:
                                                                                                                              See https://storage.googleapis.com/go-build-log/83b1ff0e/freebsd-amd64-12_0_cc301642.log

                                                                                                                              Other builds still in progress; subsequent failure notices suppressed until final report. Consult https://build.golang.org/ to see whether they are new failures. Keep in mind that TryBots currently test *exactly* your git commit, without rebasing. If your commit's git parent is old, the failure might've already been fixed.

                                                                                                                              View Change

                                                                                                                                To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

                                                                                                                                Gerrit-Project: go
                                                                                                                                Gerrit-Branch: master
                                                                                                                                Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                                                                                                                Gerrit-Change-Number: 46751
                                                                                                                                Gerrit-PatchSet: 21
                                                                                                                                Gerrit-Owner: Austin Clements <aus...@google.com>
                                                                                                                                Gerrit-Reviewer: Austin Clements <aus...@google.com>
                                                                                                                                Gerrit-Reviewer: Caleb Spare <ces...@gmail.com>
                                                                                                                                Gerrit-Reviewer: David Chase <drc...@google.com>
                                                                                                                                Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
                                                                                                                                Gerrit-Reviewer: Rick Hudson <r...@golang.org>
                                                                                                                                Gerrit-CC: Carlo Alberto Ferraris <ca...@strayorange.com>
                                                                                                                                Gerrit-CC: Damien Neil <dn...@google.com>
                                                                                                                                Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
                                                                                                                                Gerrit-CC: Joe Tsai <joe...@google.com>
                                                                                                                                Gerrit-CC: mohamed Alisaleh <mohamedal...@gmail.com>
                                                                                                                                Gerrit-Comment-Date: Fri, 03 Apr 2020 22:20:19 +0000

                                                                                                                                Gobot Gobot (Gerrit)

                                                                                                                                unread,
                                                                                                                                Apr 3, 2020, 6:30:58 PM4/3/20
                                                                                                                                to Austin Clements, goph...@pubsubhelper.golang.org, Carlo Alberto Ferraris, mohamed Alisaleh, Caleb Spare, David Chase, Damien Neil, Joe Tsai, Rick Hudson, Ian Lance Taylor, golang-co...@googlegroups.com

                                                                                                                                8 of 20 TryBots failed:

                                                                                                                                Failed on freebsd-amd64-12_0: https://storage.googleapis.com/go-build-log/83b1ff0e/freebsd-amd64-12_0_cc301642.log
                                                                                                                                Failed on linux-amd64: https://storage.googleapis.com/go-build-log/83b1ff0e/linux-amd64_8e902f9e.log
                                                                                                                                Failed on windows-amd64-2016: https://storage.googleapis.com/go-build-log/83b1ff0e/windows-amd64-2016_1b25ab1a.log
                                                                                                                                Failed on linux-386: https://storage.googleapis.com/go-build-log/83b1ff0e/linux-386_f9b21da8.log
                                                                                                                                Failed on android-amd64-emu: https://storage.googleapis.com/go-build-log/83b1ff0e/android-amd64-emu_5efe3d85.log
                                                                                                                                Failed on openbsd-amd64-64: https://storage.googleapis.com/go-build-log/83b1ff0e/openbsd-amd64-64_d3fa41f5.log
                                                                                                                                Failed on windows-386-2008: https://storage.googleapis.com/go-build-log/83b1ff0e/windows-386-2008_8e2f0b9e.log
                                                                                                                                Failed on linux-amd64-race: https://storage.googleapis.com/go-build-log/83b1ff0e/linux-amd64-race_bfd75385.log

                                                                                                                                Consult https://build.golang.org/ to see whether they are new failures. Keep in mind that TryBots currently test *exactly* your git commit, without rebasing. If your commit's git parent is old, the failure might've already been fixed.

                                                                                                                                Patch set 21:TryBot-Result -1

                                                                                                                                View Change

                                                                                                                                  To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

                                                                                                                                  Gerrit-Project: go
                                                                                                                                  Gerrit-Branch: master
                                                                                                                                  Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                                                                                                                  Gerrit-Change-Number: 46751
                                                                                                                                  Gerrit-PatchSet: 21
                                                                                                                                  Gerrit-Owner: Austin Clements <aus...@google.com>
                                                                                                                                  Gerrit-Reviewer: Austin Clements <aus...@google.com>
                                                                                                                                  Gerrit-Reviewer: Caleb Spare <ces...@gmail.com>
                                                                                                                                  Gerrit-Reviewer: David Chase <drc...@google.com>
                                                                                                                                  Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
                                                                                                                                  Gerrit-Reviewer: Rick Hudson <r...@golang.org>
                                                                                                                                  Gerrit-CC: Carlo Alberto Ferraris <ca...@strayorange.com>
                                                                                                                                  Gerrit-CC: Damien Neil <dn...@google.com>
                                                                                                                                  Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
                                                                                                                                  Gerrit-CC: Joe Tsai <joe...@google.com>
                                                                                                                                  Gerrit-CC: mohamed Alisaleh <mohamedal...@gmail.com>
                                                                                                                                  Gerrit-Comment-Date: Fri, 03 Apr 2020 22:30:55 +0000

                                                                                                                                  Austin Clements (Gerrit)

                                                                                                                                  unread,
                                                                                                                                  Apr 6, 2020, 9:40:48 PM4/6/20
                                                                                                                                  to Austin Clements, goph...@pubsubhelper.golang.org, Gobot Gobot, Carlo Alberto Ferraris, mohamed Alisaleh, Caleb Spare, David Chase, Damien Neil, Joe Tsai, Rick Hudson, Ian Lance Taylor, golang-co...@googlegroups.com

                                                                                                                                  Patch Set 21: TryBot-Result-1

                                                                                                                                  8 of 20 TryBots failed:

                                                                                                                                  I don't think this is related to the new min trigger ratio code, which would have been the obvious culprit since that's where the merge conflict was.

                                                                                                                                  If I revert to PS19, "go test -short -run SetMaxHeap runtime/debug" reliably passes on my linux/amd64 laptop.

                                                                                                                                  If I cherry-pick PS19 and just delete the min trigger ratio code (resolving the conflict to the code that was in PS19), "go test -short -run SetMaxHeap runtime/debug" reliably fails in the exact ways the trybots are failing.

                                                                                                                                  View Change

                                                                                                                                    To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

                                                                                                                                    Gerrit-Project: go
                                                                                                                                    Gerrit-Branch: master
                                                                                                                                    Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                                                                                                                    Gerrit-Change-Number: 46751
                                                                                                                                    Gerrit-PatchSet: 21
                                                                                                                                    Gerrit-Owner: Austin Clements <aus...@google.com>
                                                                                                                                    Gerrit-Reviewer: Austin Clements <aus...@google.com>
                                                                                                                                    Gerrit-Reviewer: Caleb Spare <ces...@gmail.com>
                                                                                                                                    Gerrit-Reviewer: David Chase <drc...@google.com>
                                                                                                                                    Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
                                                                                                                                    Gerrit-Reviewer: Rick Hudson <r...@golang.org>
                                                                                                                                    Gerrit-CC: Carlo Alberto Ferraris <ca...@strayorange.com>
                                                                                                                                    Gerrit-CC: Damien Neil <dn...@google.com>
                                                                                                                                    Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
                                                                                                                                    Gerrit-CC: Joe Tsai <joe...@google.com>
                                                                                                                                    Gerrit-CC: mohamed Alisaleh <mohamedal...@gmail.com>
                                                                                                                                    Gerrit-Comment-Date: Tue, 07 Apr 2020 01:40:41 +0000

                                                                                                                                    David Chase (Gerrit)

                                                                                                                                    unread,
                                                                                                                                    Apr 7, 2020, 9:30:38 AM4/7/20
                                                                                                                                    to Austin Clements, goph...@pubsubhelper.golang.org, Gobot Gobot, Carlo Alberto Ferraris, mohamed Alisaleh, Caleb Spare, Damien Neil, Joe Tsai, Rick Hudson, Ian Lance Taylor, golang-co...@googlegroups.com

                                                                                                                                    This doesn't seem to include Michael's changes to guard against weird trigger ratios.

                                                                                                                                    https://github.com/golang/go/commit/74af7fc603

                                                                                                                                    Is that intended?

                                                                                                                                    View Change

                                                                                                                                      To view, visit change 46751. To unsubscribe, or for help writing mail filters, visit settings.

                                                                                                                                      Gerrit-Project: go
                                                                                                                                      Gerrit-Branch: master
                                                                                                                                      Gerrit-Change-Id: I016de1d0ee0d7e34d2752c38cae64d0d0cfedb5f
                                                                                                                                      Gerrit-Change-Number: 46751
                                                                                                                                      Gerrit-PatchSet: 21
                                                                                                                                      Gerrit-Owner: Austin Clements <aus...@google.com>
                                                                                                                                      Gerrit-Reviewer: Austin Clements <aus...@google.com>
                                                                                                                                      Gerrit-Reviewer: Caleb Spare <ces...@gmail.com>
                                                                                                                                      Gerrit-Reviewer: David Chase <drc...@google.com>
                                                                                                                                      Gerrit-Reviewer: Gobot Gobot <go...@golang.org>
                                                                                                                                      Gerrit-Reviewer: Rick Hudson <r...@golang.org>
                                                                                                                                      Gerrit-CC: Carlo Alberto Ferraris <ca...@strayorange.com>
                                                                                                                                      Gerrit-CC: Damien Neil <dn...@google.com>
                                                                                                                                      Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
                                                                                                                                      Gerrit-CC: Joe Tsai <joe...@google.com>
                                                                                                                                      Gerrit-CC: mohamed Alisaleh <mohamedal...@gmail.com>
                                                                                                                                      Gerrit-Comment-Date: Tue, 07 Apr 2020 13:30:32 +0000
                                                                                                                                      It is loading more messages.
                                                                                                                                      0 new messages