1
0
mirror of https://github.com/golang/go synced 2024-11-23 11:50:09 -07:00

fixalloc: fix f.nchunk

This commit is contained in:
Hans 2021-07-28 12:13:02 +08:00
parent e3ee0531af
commit cb8b1b01bb

View File

@ -85,7 +85,7 @@ func (f *fixalloc) alloc() unsafe.Pointer {
} }
if uintptr(f.nchunk) < f.size { if uintptr(f.nchunk) < f.size {
f.chunk = uintptr(persistentalloc(_FixAllocChunk, 0, f.stat)) f.chunk = uintptr(persistentalloc(_FixAllocChunk, 0, f.stat))
f.nchunk = f._FixAllocChunk f.nchunk = _FixAllocChunk
} }
v := unsafe.Pointer(f.chunk) v := unsafe.Pointer(f.chunk)