Commit Graph

202 Commits

Author SHA1 Message Date
Daan Leijen f2a2eb4ad0 merge from dev 2022-04-20 17:16:25 -07:00
Daan Leijen d69d4c861f add zero parameter to primitive allocation to improve codegen for calloc etc 2022-04-19 18:32:35 -07:00
Daan Leijen d6f3e74684 fix test macros 2022-04-19 10:49:39 -07:00
Daan Leijen a158aef235 fix for realloc with size 0: returning NULL from realloc now always indicates an error (issue #574) 2022-04-19 10:31:55 -07:00
Daan Leijen 8713959498 update test macros; add realloc tests 2022-04-19 10:21:41 -07:00
Daan Leijen 5b172280b0 add nodiscard annotations to fix warnings in msvc 2022-04-19 10:10:10 -07:00
Daan Leijen 1270eec6c0 merge from dev 2022-04-10 13:19:26 -07:00
Daan Leijen 016b2ad535 nicer heap walk test 2022-04-09 14:08:27 -07:00
Daan Leijen e18a8cd72e add heap walk test 2022-04-08 16:58:32 -07:00
Daan 0dafa1e0a0 Merge branch 'dev' into dev-trace 2022-04-08 13:48:57 -07:00
daan ccbc8ae0bb add huge allocation test (see #544 by @Tiran) 2022-02-10 11:46:28 -08:00
Daan 5fcb2615a8 add overflow test 2022-02-03 19:16:23 -08:00
daan f690711539 fix debug freed bytes fill non-owning thread free 2022-01-10 16:44:12 -08:00
daan ad47cab97c merge from dev 2022-01-10 16:22:34 -08:00
Daan Leijen 320f95f6cd further fixes to allow statically linking mimalloc in DLL modules (issue #508) 2022-01-10 16:07:22 -08:00
Frank Richter 691eb0d8ed Add tests to check "freed memory fill" behaviour in debug mode 2021-12-21 16:20:59 +01:00
Frank Richter 1cf7ca021d Add tests for debug mode "uninit fill" behaviour 2021-12-21 16:20:59 +01:00
Frank Richter 969f3a6998 Add tests for zero-initialization functions 2021-12-21 16:20:56 +01:00
Frank Richter d7105c20a9 Move test macros/helpers to a separate header 2021-12-21 12:48:51 +01:00
daan f16435447c fix bug in freeing huge OS page allocation spanning multiple huge OS pages 2021-12-18 11:37:00 -08:00
Daan Leijen 89090510bd update alignment tests 2021-12-18 11:11:44 -08:00
daan faf2a7020c add extra alignment tests 2021-12-17 13:25:38 -08:00
daan 89f583a69b improve aligned allocation performance 2021-12-17 13:18:05 -08:00
Daan 1b09877bc4
Merge branch 'dev' into netbsd_reallocarr 2021-12-15 16:27:26 -08:00
daan b91198826c merge from dev 2021-12-15 08:37:06 -08:00
daan 2d9b8aa6b5 rename VER_DIR to VERSION_DIR 2021-12-15 08:33:14 -08:00
Daan 69b6b24688 further improvements to installation directories 2021-12-14 18:29:14 -08:00
Daan 5739714b8d faster backtrace; show predecessor blocks on block overflow 2021-12-10 17:16:37 -08:00
Daan b6e2b6e975 enable traces on apple 2021-12-10 12:08:41 -08:00
Daan Leijen 65b2cebcef improve stacktrace on linux 2021-12-10 11:42:54 -08:00
Daan Leijen 28893a6c1b improve padding and error messages 2021-12-10 11:09:19 -08:00
Daan Leijen ea75c745e1 add tracing on linux and freebsd 2021-12-09 17:26:13 -08:00
Daan Leijen 8c04558af8 improve padding extra 2021-12-09 16:04:22 -08:00
Daan Leijen a84df3795a add support for extra padding and backtraces 2021-12-09 14:19:41 -08:00
David Carlier d6a56dd99d introduces netbsd's reallocarr overriding.
and couple of tests.
2021-12-01 22:43:13 +00:00
Daan 4ce6821c09 update cmake install for MI_INSTALL_TOPLEVEL 2021-11-14 15:32:21 -08:00
daan 09e59e0610 use size_t instead of uintptr_t where appropiate 2021-11-13 15:13:16 -08:00
David CARLIER 5834751ca6 api test conceal gcc pragma 2021-10-20 16:17:13 +01:00
Daan Leijen 10c31f9b41 fix warnings 2021-10-19 15:13:01 -07:00
Daan 9769cd4103
Merge pull request #428 from Logarithmus/fix-test-i686
Fix 'malloc-nomem1' test for 32-bit architectures
2021-10-19 10:51:17 -07:00
Daan 1917fbd847
Merge pull request #467 from tiran/strict_prototypes
Fix strict function prototype warnings
2021-10-19 09:35:40 -07:00
Christian Heimes 7c73e3996d Fix strict function prototype warnings
Fix warning ``warning: function declaration isn’t a prototype`` when
building mimalloc with ``-Wstrict-prototypes`` flag. In C argumentless
functions should be declared as ``func(void)``.

Reproducer:
```shell
$ cmake ../.. -DCMAKE_C_FLAGS="-Wstrict-prototypes"
$ make VERBOSE=1
```

Co-authored-by: Sam Gross <colesbury@gmail.com>
Co-authored-by: Neil Schemenauer <nas@arctrix.com>
Signed-off-by: Christian Heimes <christian@python.org>
2021-10-19 10:48:26 +02:00
Daan Leijen 32c5e4774f update tests with static 2021-07-26 19:14:29 -07:00
Daan Leijen a3cf23c19f add test for #445 2021-07-26 19:10:21 -07:00
Artur Sinila edb0b93c6f
Fix 'malloc-nomem1' test for 32-bit architectures 2021-06-29 22:38:43 +03:00
Daan Leijen 752594e764 add test for #414 2021-06-17 19:47:41 -07:00
Daan Leijen a83bca72b3 fixes for M1; disable interpose use zones; fix pedantic warnings 2021-06-17 19:15:09 -07:00
Daan Leijen e2c095fad2 fix installation directories on unix to use /lib, /include, /share; fix issues #399, #223, and #89 2021-05-21 15:15:50 -07:00
Daan Leijen 73c339235c collect in debug mode in stress test 2021-04-28 16:12:32 -07:00
Jim Huang 5940d3bcce Bump copyright date
Each source file has been changed according to relevant Git activities.
2021-04-24 16:35:11 +00:00