From 8f4cc1b4da1924a9644fd8b1e73abede5cd01484 Mon Sep 17 00:00:00 2001 From: Nathaniel Wesley Filardo Date: Sat, 10 Dec 2022 10:58:03 +0000 Subject: [PATCH] NFC: lockrange: add note about ancestor() --- src/snmalloc/backend_helpers/lockrange.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/snmalloc/backend_helpers/lockrange.h b/src/snmalloc/backend_helpers/lockrange.h index a2b3811..ce91711 100644 --- a/src/snmalloc/backend_helpers/lockrange.h +++ b/src/snmalloc/backend_helpers/lockrange.h @@ -7,6 +7,9 @@ namespace snmalloc { /** * Protect the ParentRange with a spin lock. + * + * Accesses via the ancestor() mechanism will bypass the lock and so + * should be used only where the resulting data races are acceptable. */ struct LockRange {