summaryrefslogtreecommitdiff
path: root/include/rtl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-01 15:01:35 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-05-16 08:38:15 +0200
commit6da400912e8c69ae86650e799767da54ee422392 (patch)
treeda5a49a0c8a38c3b0d6c963a73a93e74f357b23f /include/rtl
parent5dcb065d24fd9b57b6dc65a19a8a8c8bbaa22c44 (diff)
[API CHANGE] Remove no longer working rtl_arena -> rtl_cache feature
rtl_arena_create's quantum_cache_max parameter (when non-zero) would have allowed an rtl_arena to internally use an rtl_cache for chunk allocation. (And none of the LO-internal uses of rtl_arena_create makes use of that.) However, with the combination of old ce906b8096081dee15dc8cc96e570d5b0b587955 "skip tricky allocators on G_SLICE=always-malloc" and recent bc6a5d8e79e7d0e7d75ac107aa8e6aa275e434e9 "Disable custom allocator", rtl_cache unconditionally just uses malloc/free now, so the rtl_arena_create quantum_cache_max feature has effectively become irrelevant. As those changes appear to have no negative consequences overall (and help remove quite a chunk of no-longer used code), leave it at that and officially abandon the quantum_cache_max feature. Change-Id: I7d186a4a1589db6a73059c2be164aa81d81aef47 Reviewed-on: https://gerrit.libreoffice.org/54388 Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'include/rtl')
-rw-r--r--include/rtl/alloc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/rtl/alloc.h b/include/rtl/alloc.h
index 9f8dfc1f992e..a55df0aaaf4c 100644
--- a/include/rtl/alloc.h
+++ b/include/rtl/alloc.h
@@ -152,7 +152,7 @@ typedef struct SAL_DLLPUBLIC_RTTI rtl_arena_st rtl_arena_type;
/**
* @param[in] pName descriptive name; for debugging purposes.
* @param[in] quantum resource allocation unit / granularity; rounded up to next power of 2.
- * @param[in] quantum_cache_max max resources to cache; rounded up to next multiple of quantum; usually 0.
+ * @param[in] quantum_cache_max no longer used, should be 0.
* @param[in] source_arena passed as argument to source_alloc, source_free; usually NULL.
* @param[in] source_alloc function to allocate resources; usually rtl_arena_alloc.
* @param[in] source_free function to free resources; usually rtl_arena_free.