Commit Graph

40 Commits

Author SHA1 Message Date
daan a200291ae5 further progress on removing aligned limit 2022-11-06 08:26:17 -08:00
daan 6a80fa3ac1 initial progress on removing alignment limit 2022-11-05 14:46:52 -07:00
daan 2d3f0e5b7a fix align5 test 2022-11-01 16:34:17 -07:00
daan eee7c40da5 updates to run valgrind on test-api 2022-10-29 11:43:09 -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 ccbc8ae0bb add huge allocation test (see #544 by @Tiran) 2022-02-10 11:46:28 -08:00
Frank Richter 1cf7ca021d Add tests for debug mode "uninit fill" behaviour 2021-12-21 16:20:59 +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
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
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
Artur Sinila edb0b93c6f Fix 'malloc-nomem1' test for 32-bit architectures 2021-06-29 22:38:43 +03: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
Cormac Relf 414acd49ab Add test to exercise mi_usable_size on aligned allocations 2020-04-06 22:50:21 +10:00
daan baf08e8d54 fix size check on overflow when padding is enabled in debug mode 2020-02-17 09:59:34 -08:00
daan f0dc6e7e42 add extra alignment test 2020-02-02 16:21:06 -08:00
daan 146899af8a add missing members to stl allocator (#193) 2020-01-20 15:27:05 -08:00
daan e8d7c80c74 fix build warnings on linux 2020-01-19 17:33:36 -08:00