diff --git a/tcmalloc/BUILD b/tcmalloc/BUILD index 0dd44b808..93a49f527 100644 --- a/tcmalloc/BUILD +++ b/tcmalloc/BUILD @@ -1318,6 +1318,7 @@ cc_test( # There can be only one CpuCache due to slab offset caching in rseq. malloc = "//tcmalloc/internal:system_malloc", shard_count = 3, + tags = ["noubsan"], deps = [ ":common_8k_pages", ":mock_transfer_cache", @@ -1344,6 +1345,7 @@ cc_test( srcs = ["cpu_cache_activate_test.cc"], copts = TCMALLOC_DEFAULT_COPTS, malloc = ":tcmalloc_deprecated_perthread", + tags = ["noubsan"], deps = [ ":common_deprecated_perthread", ":malloc_extension", diff --git a/tcmalloc/internal/BUILD b/tcmalloc/internal/BUILD index 96cbb4707..562a43609 100644 --- a/tcmalloc/internal/BUILD +++ b/tcmalloc/internal/BUILD @@ -675,6 +675,7 @@ cc_test( copts = TCMALLOC_DEFAULT_COPTS, linkstatic = 1, malloc = ":system_malloc", + tags = ["noubsan"], deps = [ ":affinity", ":config", diff --git a/tcmalloc/testing/BUILD b/tcmalloc/testing/BUILD index 203e1975a..b3f129713 100644 --- a/tcmalloc/testing/BUILD +++ b/tcmalloc/testing/BUILD @@ -626,6 +626,7 @@ cc_test( linkstatic = 1, malloc = "//tcmalloc:tcmalloc_numa_aware", tags = [ + "noubsan", ], deps = [ ":testutil", @@ -808,6 +809,9 @@ cc_test( srcs = ["malloc_extension_system_malloc_test.cc"], copts = TCMALLOC_DEFAULT_COPTS, malloc = "//tcmalloc/internal:system_malloc", + tags = [ + "noubsan", + ], deps = [ "//tcmalloc:malloc_extension", "@com_google_absl//absl/random", @@ -926,6 +930,9 @@ cc_test( srcs = ["parallel_test.cc"], copts = TCMALLOC_DEFAULT_COPTS, malloc = "//tcmalloc/internal:system_malloc", + tags = [ + "noubsan", + ], deps = [ "//tcmalloc:malloc_extension", "//tcmalloc:tcmalloc_internal_methods_only", # buildcleaner: keep