"bytes"
"internal/testenv"
"os/exec"
+ "runtime"
"testing"
)
"bucketMask",
"fastrand",
"noescape",
-
- // TODO: These were modified at some point to be
- // made inlineable, but have since been broken.
- // "nextFreeFast",
},
"unicode/utf8": {
"FullRune",
},
}
+ if runtime.GOARCH != "386" {
+ // nextFreeFast calls sys.Ctz64, which on 386 is implemented in asm and is not inlinable.
+ // We currently don't have midstack inlining so nextFreeFast is also not inlinable on 386.
+ // So check for it only on non-386 platforms.
+ want["runtime"] = append(want["runtime"], "nextFreeFast")
+ }
+
m := make(map[string]bool)
pkgs := make([]string, 0, len(want))
for pname, fnames := range want {
}
s.allocCache >>= uint(theBit + 1)
s.freeindex = freeidx
- v := gclinkptr(result*s.elemsize + s.base())
s.allocCount++
- return v
+ return gclinkptr(result*s.elemsize + s.base())
}
}
return 0