diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2017-11-08 17:04:45 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2017-11-08 17:04:45 +0000 |
commit | d9d4a87efaf8eceac00e8f4f5a7a079d46d3244e (patch) | |
tree | ec0704ea2846301b6793e6beccfb67d1c55a5de4 /NEWS | |
parent | b10c40de7fe6b7eaca6be5cc75ac5cb916e72d2c (diff) | |
download | mpfr-d9d4a87efaf8eceac00e8f4f5a7a079d46d3244e.tar.gz |
Change the way memory is allocated (as discussed partly in private).
* src/mpfr-gmp.c, src/mpfr-gmp.h, src/mpfr-impl.h: update.
* src/free_cache.c, src/mpfr.h: added mpfr_mp_memory_cleanup function.
* NEWS: describe API change.
* TODO: added 2 related items (future clean-up and feature).
* doc/mpfr.texi: update.
* tests/talloc-cache.c: take API change into account.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11807 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -23,6 +23,17 @@ http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., Changes from versions 3.1.* to version 4.0.0: - The "dinde aux marrons" release. - MPFR now depends on GMP 5.0+ instead of 4.1+. +- API change: + Applications that call GMP's mp_set_memory_functions function to change + the allocators must first call the new function mpfr_mp_memory_cleanup + in all threads where MPFR is potentially used; this new function is + currently equivalent to mpfr_free_cache. + The reason is that the way memory allocation is done by MPFR has changed + (again), so that the current GMP allocators are used (since for some + applications, the old allocators may become invalid). + Note: Freeing the caches like this might have a performance impact on some + particular applications; if this is an issue, this could be handled for a + future MPFR version. - Mini-gmp support via the --enable-mini-gmp configure option (experimental). - The minimum precision MPFR_PREC_MIN is now 1, with rounding defined as in the next IEEE 754 revision (ties rounded away from zero). |