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:
parent
e3ee0531af
commit
cb8b1b01bb
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user