tcache_key_initialize ();
#endif
+#ifdef __CHERI_PURE_CAPABILITY__
+ if (TUNABLE_GET_FULL (glibc, mem, cap_narrowing, int32_t, NULL) == 0)
+ cap_narrowing_enabled = false;
+ else
+ cap_narrowing_enabled = true;
+#endif
cap_init ();
#ifdef USE_MTAG
The default value is @samp{0}, which disables all memory tagging.
@end deftp
+
+@deftp Tunable glibc.mem.cap_narrowing
+On CHERI architecture use capability bounds narrowing in the malloc
+implementation. By default it is set to 1, to disable bounds narrowing
+set it to 0.
+@end deftp