From 1f9f7db2bf7087e82102d5984a8eca9208d1caf3 Mon Sep 17 00:00:00 2001 From: Leonard Wang Date: Tue, 20 Apr 2021 00:24:51 +0800 Subject: [PATCH] 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 Run-TryBot: Dmitri Shuralyov TryBot-Result: Gopher Robot Reviewed-by: Keith Randall Reviewed-by: Keith Randall Auto-Submit: Dmitri Shuralyov --- src/runtime/malloc.go | 6 ------ 1 file changed, 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 -- 2.50.0