]> Cypherpunks.ru repositories - gostls13.git/commitdiff
runtime: remove GODEBUG=scavenge mode
authorLeonardWang <wangdeyu0907@gmail.com>
Wed, 6 Jan 2021 16:36:34 +0000 (00:36 +0800)
committerMichael Pratt <mpratt@google.com>
Thu, 4 Mar 2021 17:27:32 +0000 (17:27 +0000)
Change-Id: Ic4c7b5086303c7faa49f4cbf6738e66d5de35c7e
Reviewed-on: https://go-review.googlesource.com/c/go/+/282012
Trust: Michael Pratt <mpratt@google.com>
Run-TryBot: Michael Pratt <mpratt@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
src/runtime/extern.go
src/runtime/runtime1.go

index bbe41dd0d430a4e59894244496c9392aef2d9222..b73d68428fe988304ad7730c3a0c32a9ae2c7d07 100644 (file)
@@ -110,8 +110,6 @@ It is a comma-separated list of name=val pairs setting these named variables:
        with a trivial allocator that obtains memory from the operating system and
        never reclaims any memory.
 
-       scavenge: scavenge=1 enables debugging mode of heap scavenger.
-
        scavtrace: setting scavtrace=1 causes the runtime to emit a single line to standard
        error, roughly once per GC cycle, summarizing the amount of work done by the
        scavenger as well as the total amount of memory returned to the operating system
index 30b7044bffcf7e5f3ca17a2f622a2cdc21df6d5f..b238da8f514e42b7973a0c148621a0ebb1e6e249 100644 (file)
@@ -310,7 +310,6 @@ var debug struct {
        gctrace            int32
        invalidptr         int32
        madvdontneed       int32 // for Linux; issue 28466
-       scavenge           int32
        scavtrace          int32
        scheddetail        int32
        schedtrace         int32
@@ -339,7 +338,6 @@ var dbgvars = []dbgVar{
        {"invalidptr", &debug.invalidptr},
        {"madvdontneed", &debug.madvdontneed},
        {"sbrk", &debug.sbrk},
-       {"scavenge", &debug.scavenge},
        {"scavtrace", &debug.scavtrace},
        {"scheddetail", &debug.scheddetail},
        {"schedtrace", &debug.schedtrace},