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
Copy file name to clipboardExpand all lines: src/snmalloc/README.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,9 @@ These are arranged in a hierarchy such that each of the directories may include
10
10
This layer provides abstractions over CPU-specific intrinsics and defines things such as the virtual address-space size.
11
11
There is a single AAL for an snmalloc instantiation.
12
12
-`ds_aal/` provides data structures that depend on the AAL.
13
+
-`mitigations/` provides compile-time configuration for security mitigations.
14
+
This includes the `mitigations()` function (controlled by `SNMALLOC_CHECK_CLIENT`), mitigation-dependent allocator constants, and CHERI capability checks.
15
+
Layers below this (`ds_core/`, `aal/`, `ds_aal/`) are mitigation-independent, which allows code that only includes those layers to be compiled once regardless of mitigation settings.
13
16
-`pal/` provides the platform abstraction layer (PAL).
14
17
This exposes OS- or environment-specific abstractions into the rest of the code.
15
18
An snmalloc instantiation may use more than one PAL, including ones provided by the user.
0 commit comments