From cb8b1b01bbf452195f4f098d53cca74affc496ff Mon Sep 17 00:00:00 2001 From: Hans Date: Wed, 28 Jul 2021 12:13:02 +0800 Subject: [PATCH] fixalloc: fix f.nchunk --- src/runtime/mfixalloc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/mfixalloc.go b/src/runtime/mfixalloc.go index b570214ddb..a81139a389 100644 --- a/src/runtime/mfixalloc.go +++ b/src/runtime/mfixalloc.go @@ -85,7 +85,7 @@ func (f *fixalloc) alloc() unsafe.Pointer { } if uintptr(f.nchunk) < f.size { f.chunk = uintptr(persistentalloc(_FixAllocChunk, 0, f.stat)) - f.nchunk = f._FixAllocChunk + f.nchunk = _FixAllocChunk } v := unsafe.Pointer(f.chunk)