mirror of
https://github.com/golang/go
synced 2024-09-15 22:20:06 +00:00
runtime: remove useless constant definition in malloc.go
Change-Id: I060c867d89a06b5a44fbe77804c19299385802d9 Reviewed-on: https://go-review.googlesource.com/c/go/+/311250 Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Keith Randall <khr@golang.org> Reviewed-by: Keith Randall <khr@google.com> Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
This commit is contained in:
parent
12e48f3bbf
commit
1f9f7db2bf
|
@ -110,18 +110,12 @@ import (
|
|||
)
|
||||
|
||||
const (
|
||||
debugMalloc = false
|
||||
|
||||
maxTinySize = _TinySize
|
||||
tinySizeClass = _TinySizeClass
|
||||
maxSmallSize = _MaxSmallSize
|
||||
|
||||
pageShift = _PageShift
|
||||
pageSize = _PageSize
|
||||
pageMask = _PageMask
|
||||
// By construction, single page spans of the smallest object class
|
||||
// have the most objects per span.
|
||||
maxObjsPerSpan = pageSize / 8
|
||||
|
||||
concurrentSweep = _ConcurrentSweep
|
||||
|
||||
|
|
Loading…
Reference in a new issue