X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=src%2Fruntime%2Fmsize_noallocheaders.go;h=d89e0d6cbe8946712ac23b5e43dd3f1b9394263d;hb=38ac7c41aa54306c0bdc04a092838103a7d09997;hp=22f07b8ccc2479f38bb4aab7e32a8eba17810f57;hpb=25867485a748bbefc938e66330912cd88c2f4acb;p=gostls13.git diff --git a/src/runtime/msize_noallocheaders.go b/src/runtime/msize_noallocheaders.go index 22f07b8ccc..d89e0d6cbe 100644 --- a/src/runtime/msize_noallocheaders.go +++ b/src/runtime/msize_noallocheaders.go @@ -12,7 +12,9 @@ package runtime // Returns size of the memory block that mallocgc will allocate if you ask for the size. -func roundupsize(size uintptr) uintptr { +// +// The noscan argument is purely for compatibility with goexperiment.AllocHeaders. +func roundupsize(size uintptr, noscan bool) uintptr { if size < _MaxSmallSize { if size <= smallSizeMax-8 { return uintptr(class_to_size[size_to_class8[divRoundUp(size, smallSizeDiv)]])