]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: remove useless constant definition in malloc.go
authorLeonard Wang <wangdeyu0907@gmail.com>
Mon, 19 Apr 2021 16:24:51 +0000 (00:24 +0800)
committerGopher Robot <gobot@golang.org>
Wed, 18 May 2022 15:25:04 +0000 (15:25 +0000)
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>

src/runtime/malloc.go

index 14bf9a583f4b143015a7bc852eefc79a869217d7..eb24fdb0e8f57b2c897112fa4293a17b538424f1 100644 (file)
@@ -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