mirror of
https://github.com/golang/go
synced 2024-11-17 04:34:46 -07:00
runtime: remove outdated comment in select sortkey
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: 2ab4be3885
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>
This commit is contained in:
parent
b003afe4fe
commit
d6143914e4
@ -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))
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user