aboutsummaryrefslogtreecommitdiff
path: root/src/runtime
diff options
context:
space:
mode:
authorLeonard Wang <wangdeyu0907@gmail.com>2021-04-20 00:24:51 +0800
committerGopher Robot <gobot@golang.org>2022-05-18 15:25:04 +0000
commit1f9f7db2bf7087e82102d5984a8eca9208d1caf3 (patch)
tree0c9be110c0e818f4d871d60908c5f19bbda9d7fc /src/runtime
parent12e48f3bbf7a28a6340aee5d9a5eacf3a98e869c (diff)
downloadgo-1f9f7db2bf7087e82102d5984a8eca9208d1caf3.tar.xz
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>
Diffstat (limited to 'src/runtime')
-rw-r--r--src/runtime/malloc.go6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/runtime/malloc.go b/src/runtime/malloc.go
index 14bf9a583f..eb24fdb0e8 100644
--- a/src/runtime/malloc.go
+++ b/src/runtime/malloc.go
@@ -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