diff options
Diffstat (limited to 'src/runtime/mfixalloc.go')
| -rw-r--r-- | src/runtime/mfixalloc.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/runtime/mfixalloc.go b/src/runtime/mfixalloc.go index 1a249e5981..7760ada397 100644 --- a/src/runtime/mfixalloc.go +++ b/src/runtime/mfixalloc.go @@ -57,9 +57,7 @@ func (f *fixalloc) init(size uintptr, first func(arg, p unsafe.Pointer), arg uns if size > _FixAllocChunk { throw("runtime: fixalloc size too large") } - if min := unsafe.Sizeof(mlink{}); size < min { - size = min - } + size = max(size, unsafe.Sizeof(mlink{})) f.size = size f.first = first |
