]> Cypherpunks.ru repositories - gostls13.git/blobdiff - src/runtime/msize_noallocheaders.go
runtime: implement experiment to replace heap bitmap with alloc headers
[gostls13.git] / src / runtime / msize_noallocheaders.go
index 22f07b8ccc2479f38bb4aab7e32a8eba17810f57..d89e0d6cbe8946712ac23b5e43dd3f1b9394263d 100644 (file)
@@ -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)]])