From 3b15a6eca880c6a31c308e3febd388e0f19bb620 Mon Sep 17 00:00:00 2001 From: Chris Kennelly Date: Tue, 11 Feb 2025 11:14:37 -0800 Subject: [PATCH] Exercise wider slab opt-out. PiperOrigin-RevId: 725702812 Change-Id: I84331830dc20ac677d37688f91e7b1031fed2a66 --- tcmalloc/variants.bzl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tcmalloc/variants.bzl b/tcmalloc/variants.bzl index 64f477338..c9b1750b9 100644 --- a/tcmalloc/variants.bzl +++ b/tcmalloc/variants.bzl @@ -242,6 +242,13 @@ test_variants = [ "copts": ["-DTCMALLOC_INTERNAL_8K_PAGES", "-DTCMALLOC_INTERNAL_LEGACY_LOCKING"], "tags": ["noubsan"], }, + { + "name": "no_wide_slabs", + "malloc": "//tcmalloc:tcmalloc", + "deps": ["//tcmalloc:common_8k_pages"], + "copts": ["-DTCMALLOC_INTERNAL_8K_PAGES"], + "env": {"TCMALLOC_DISABLE_WIDER_SLABS": "1"}, + }, ] def create_tcmalloc_library(