Compare commits

..
Author SHA1 Message Date
timedout 08098c5e88 chore: Add newsfrag 2026-11-21 15:15:28 +00:00
Jade Ellis 8e54ea0853 fix: Use mimalloc for c/c++ code by default 2026-11-21 14:54:10 +00:00
Jade Ellis 5bb55a1285 refactor: Unify memory stats and create feature parity 2026-11-21 14:12:45 +00:00
Jade Ellis 3a849c2687 docs(main): Clarify mimalloc feature scope and jemalloc precedence 2026-11-21 13:38:29 +00:00
Jade Ellis 9e02f5b607 feat(alloc): Implement trim, memory_usage, and memory_stats for mimalloc 2026-11-21 13:38:28 +00:00
Jade Ellis 98d4022768 fix(config): Warn in release builds when both mimalloc and jemalloc are enabled 2026-11-21 13:38:28 +00:00
Jade Ellis 7294a3589d fix(alloc): Restore not(target_env = "msvc") cfg gates and gate default module 2026-11-21 13:38:28 +00:00
timedout 6aed1895b0 feat: Add mimalloc support, drop hardened_malloc 2026-11-21 13:38:27 +00:00
timedout a9377fb896 fix(service/admin): Gate IsTerminal and warn imports on console feature 2026-11-21 13:38:27 +00:00
Jade Ellis 94f5026d57 chore: Add changelog 2026-11-21 13:36:35 +00:00
Jade Ellis c04446b86e docs(alloc): Fix interrupted doc comments in je.rs 2026-11-21 13:33:55 +00:00
Jade Ellis b4f163aacb chore(deps): Upgrade jemalloc with soundness fixes 2026-11-21 01:42:15 +00:00
Jade Ellis 6c1a6099b9 test(alloc): add unit tests for jemalloc wrapper fixes 2026-11-21 01:42:15 +00:00
Jade Ellis 97585f872c perf(alloc): return &'static Key from mallctl! macro 2026-11-21 01:42:14 +00:00
Jade Ellis 08eef0c00f fix(alloc): avoid unnecessary global epoch refreshes in mallctl get and memory_stats 2026-11-21 01:42:14 +00:00
Jade Ellis b73eace66f fix(alloc): mark raw mallctl helpers unsafe and check null in percpu_arenas 2026-11-21 01:42:13 +00:00
Jade Ellis fc4ad66af1 fix(alloc): validate arena index bounds before arena.<i>.* mallctls 2026-11-21 01:42:13 +00:00
Jade Ellis daabb53092 fix(alloc): pass NULL pointers in jemalloc notify ctls 2026-11-21 01:41:17 +00:00
Jade Ellis 806a63cb29 fix(alloc): fix UB and MIB aliasing in thread::allocated/deallocated 2026-11-21 01:41:16 +00:00
Jade Ellis cd51a01fac fix(alloc): prevent leak, panic, and FFI unwind in memory_stats 2026-11-21 01:41:16 +00:00
Jade Ellis ffa535e0d5 fix(alloc): avoid TLS and panics in jemalloc ctor and key lookup 2026-11-21 01:41:15 +00:00
Jade Ellis 4fa966212e fix(alloc): export malloc_conf as thin pointer and fix options 2026-11-21 01:41:14 +00:00
3 changed files with 10 additions and 15 deletions

No files matched your search

-1
View File
@@ -1 +0,0 @@
The former configuration alias `allow_check_for_updates` is now explicitly deprecated in favor of `allow_announcements_check`. Additionally, `request_ip_source` is now deprecated in favor of `accepted_ip_sources`.
+3 -4
View File
@@ -412,7 +412,7 @@
# env: CONTINUWUITY_IP_LOOKUP_STRATEGY # env: CONTINUWUITY_IP_LOOKUP_STRATEGY
#ip_lookup_strategy = 5 #ip_lookup_strategy = 5
# DEPRECATED: The preferred source to use for getting the real client IP. # The preferred source to use for getting the real client IP.
# #
# Takes any of the following options: # Takes any of the following options:
# #
@@ -431,10 +431,9 @@
# to set this header" check; if the header selected is present, it is # to set this header" check; if the header selected is present, it is
# used. # used.
# #
# Ignored if `accepted_ip_sources` is set. `accepted_ip_sources` is # Ignored if `accepted_ip_sources` is set.
# the preferred alternative.
# #
# If not set, `direct` is used. Additionally, `direct` is used # If not set set, `direct` is used. Additionally, `direct` is used
# as a fallback if the chosen header is not found. # as a fallback if the chosen header is not found.
# #
# env: CONTINUWUITY_REQUEST_IP_SOURCE # env: CONTINUWUITY_REQUEST_IP_SOURCE
+7 -10
View File
@@ -195,7 +195,7 @@ pub struct Config {
/// announcements or major updates. This is not an update check endpoint. /// announcements or major updates. This is not an update check endpoint.
/// ///
/// default: true /// default: true
#[serde(default = "true_fn")] #[serde(alias = "allow_check_for_updates", default = "true_fn")]
pub allow_announcements_check: bool, pub allow_announcements_check: bool,
/// Set this to any float value to multiply continuwuity's in-memory LRU /// Set this to any float value to multiply continuwuity's in-memory LRU
@@ -490,7 +490,7 @@ pub struct Config {
#[serde(default = "default_ip_lookup_strategy")] #[serde(default = "default_ip_lookup_strategy")]
pub ip_lookup_strategy: u8, pub ip_lookup_strategy: u8,
/// DEPRECATED: The preferred source to use for getting the real client IP. /// The preferred source to use for getting the real client IP.
/// ///
/// Takes any of the following options: /// Takes any of the following options:
/// ///
@@ -509,10 +509,9 @@ pub struct Config {
/// to set this header" check; if the header selected is present, it is /// to set this header" check; if the header selected is present, it is
/// used. /// used.
/// ///
/// Ignored if `accepted_ip_sources` is set. `accepted_ip_sources` is /// Ignored if `accepted_ip_sources` is set.
/// the preferred alternative.
/// ///
/// If not set, `direct` is used. Additionally, `direct` is used /// If not set set, `direct` is used. Additionally, `direct` is used
/// as a fallback if the chosen header is not found. /// as a fallback if the chosen header is not found.
#[serde(default)] #[serde(default)]
pub request_ip_source: Option<String>, pub request_ip_source: Option<String>,
@@ -2994,16 +2993,11 @@ impl<'de, K: Hash + Eq + Clone> Deserialize<'de> for PerMinuteRatelimiter<K> {
} }
const DEPRECATED_KEYS: &[&str] = &[ const DEPRECATED_KEYS: &[&str] = &[
"allow_check_for_updates",
"allow_moderators_to_view_redacted_content",
"allow_sticky_events",
"cache_capacity", "cache_capacity",
"conduit_cache_capacity_modifier", "conduit_cache_capacity_modifier",
"max_concurrent_requests", "max_concurrent_requests",
"otlp_protocol", "otlp_protocol",
"request_ip_source",
"roomid_spacehierarchy_cache_capacity", "roomid_spacehierarchy_cache_capacity",
"unredacted_content_max_age_secs",
"well_known_client", "well_known_client",
"well_known_server", "well_known_server",
"well_known_support_page", "well_known_support_page",
@@ -3011,6 +3005,9 @@ const DEPRECATED_KEYS: &[&str] = &[
"well_known_support_email", "well_known_support_email",
"well_known_support_mxid", "well_known_support_mxid",
"well_known.rtc_focus_server_urls", "well_known.rtc_focus_server_urls",
"allow_sticky_events",
"allow_moderators_to_view_redacted_content",
"unredacted_content_max_age_secs",
]; ];
impl Config { impl Config {