]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: remove outdated comment in select sortkey
authorOu Changkun <hi@changkun.us>
Fri, 16 Aug 2019 13:50:07 +0000 (13:50 +0000)
committerEmmanuel Odeke <emm.odeke@gmail.com>
Sun, 1 Sep 2019 00:05:48 +0000 (00:05 +0000)
This CL removes an outdated comment regarding converting a pointer to `uintptr`.
The comment was introduced in Go 1.4 and runtime GC was under the consideration of major revisions. According to the current situation, Go runtime memory allocator has no fragmentation issue. Therefore compact GC won't be implemented in the near future.

Change-Id: I5c336d81d810cf57b76797f05428421bb39a5b9f
GitHub-Last-Rev: 2ab4be3885d3f48abbcb59af3f74bc95501ff23f
GitHub-Pull-Request: golang/go#33685
Reviewed-on: https://go-review.googlesource.com/c/go/+/190520
Reviewed-by: Keith Randall <khr@golang.org>
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>

src/runtime/select.go

index 86182890cc20c0c8a9f30f9d575123449c2f91cd..d2c5a03a1a68f1aa207696fba385a798cd1b54b2 100644 (file)
@@ -493,8 +493,6 @@ sclose:
 }
 
 func (c *hchan) sortkey() uintptr {
-       // TODO(khr): if we have a moving garbage collector, we'll need to
-       // change this function.
        return uintptr(unsafe.Pointer(c))
 }