go/src/strings
Michael Anthony Knyszek 579eb79f62 all: skip and fix various tests with -asan and -msan
First, skip all the allocation count tests.

In some cases this aligns with existing skips for -race, but in others
we've got new issues. These are debug modes, so some performance loss is
expected, and this is clearly no worse than today where the tests fail.

Next, skip internal linking and static linking tests for msan and asan.

With asan we get an explicit failure that neither are supported by the C
and/or Go compilers. With msan, we only get the Go compiler telling us
internal linking is unavailable. With static linking, we segfault
instead. Filed #70080 to track that.

Next, skip some malloc tests with asan that don't quite work because of
the redzone.

This is because of some sizeclass assumptions that get broken with the
redzone and the fact that the tiny allocator is effectively disabled
(again, due to the redzone).

Next, skip some runtime/pprof tests with asan, because of extra
allocations.

Next, skip some malloc tests with asan that also fail because of extra
allocations.

Next, fix up memstats accounting for arenas when asan is enabled. There
is a bug where more is added to the stats than subtracted. This also
simplifies the accounting a little.

Next, skip race tests with msan or asan enabled; they're mutually
incompatible.

Fixes #70054.
Fixes #64256.
Fixes #64257.
For #70079.
For #70080.

Change-Id: I99c02a0b9d621e44f1f918b307aa4a4944c3ec60
Cq-Include-Trybots: luci.golang.try:gotip-linux-amd64-asan-clang15,gotip-linux-amd64-msan-clang15
Reviewed-on: https://go-review.googlesource.com/c/go/+/622855
Reviewed-by: Cherry Mui <cherryyz@google.com>
TryBot-Bypass: Michael Knyszek <mknyszek@google.com>
2024-10-28 21:04:51 +00:00
..
builder.go cmd/compile: don't inline runtime functions in -d=checkptr build 2024-07-22 15:45:09 +00:00
builder_test.go all: skip and fix various tests with -asan and -msan 2024-10-28 21:04:51 +00:00
clone.go strings: move Clone to stringslite 2024-05-04 01:23:42 +00:00
clone_test.go strings: remove redundant symbols 2023-01-17 17:24:17 +00:00
compare.go strings: more cross-references in docstrings 2024-07-11 15:01:18 +00:00
compare_test.go strings: simplify code using unsafe.StringData 2022-09-07 01:33:55 +00:00
example_test.go strings: fix typo in examples 2024-08-16 23:50:48 +00:00
export_test.go
iter.go bytes, strings: add Lines, SplitSeq, SplitAfterSeq, FieldsSeq, FieldsFuncSeq 2024-08-14 18:23:13 +00:00
reader.go bytes,strings: add available godoc link 2023-10-13 17:10:31 +00:00
reader_test.go
replace.go strings: more cross-references in docstrings 2024-07-11 15:01:18 +00:00
replace_test.go
search.go strings: use the builtin max function 2023-08-07 18:49:51 +00:00
search_test.go bytes,strings,unicode/utf16: use slices to clean up tests 2024-07-24 18:45:08 +00:00
strings.go byte,strings: improve IndexRune performance by ~45% 2024-08-14 18:25:29 +00:00
strings_test.go all: remove duplicated words in comments 2024-08-19 19:09:04 +00:00