You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
cmd/compile: building with -asan generates many more allocations than with other instrumentation modes #70079
I'm not really sure what the trouble is yet, but this does seem to be true given how many allocation count tests failed on asan but not with race or msan.
These tests will be skipped for now, so this is low priority. But anyone interested in improving the performance of asan mode might consider looking here first.
In triage, I am told this may be totally intentional. ASAN doesn't work quite so well with stack pointers, so it intentionally forces a lot more to the heap, like every pointer converted to an unsafe.Pointer.
Activity
gabyhelp commentedon Oct 28, 2024
Related Issues and Documentation
(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)
gopherbot commentedon Oct 28, 2024
Change https://go.dev/cl/622855 mentions this issue:
all: skip and fix various tests with -asan and -msanall: skip and fix various tests with -asan and -msan
mknyszek commentedon Oct 30, 2024
In triage, I am told this may be totally intentional. ASAN doesn't work quite so well with stack pointers, so it intentionally forces a lot more to the heap, like every pointer converted to an
unsafe.Pointer.gopherbot commentedon Nov 1, 2024
Change https://go.dev/cl/623957 mentions this issue:
[release-branch.go1.23] all: skip and fix various tests with -asan and -msangopherbot commentedon Mar 4, 2025
Change https://go.dev/cl/654835 mentions this issue:
context: skip TestAllocs when using ASAN