Matthew Parkinson
d135786ad5
Test case for large non-pagealigned calloc size.
2020-04-14 12:11:04 +01:00
Amaury Chamayou
acbcbce597
replace assert with SNMALLOC_ASSERT
2020-03-04 16:57:44 +00:00
Nathaniel Filardo
261249d9cb
Preserve provenance through pointer offsetting
2019-11-26 14:59:54 +00:00
Matthew Parkinson
18da679042
Missing setup call.
2019-08-15 10:52:08 +01:00
Matthew Parkinson
9eaadcd6d8
Reduce parallism in tests
...
If some tests on Windows are co-scheduled, then they run out of commit
space and crash. For example, in func-memory,
test_external_pointer_large can cause the small CI machines to run out
of commit space on Windows.
2019-08-15 10:50:54 +01:00
Matthew Parkinson
df1896d55f
Improved ThreadAlloc::get API
...
Made the API so that get always returns an initialised Alloc*. Added
new fast path that doesn't perform checking, but can lead to very slow
behaviour if called and reused.
2019-07-15 15:02:47 +01:00
David Chisnall
14b5c57b55
Fix all of the tests.
2019-07-05 13:24:28 +01:00
Matthew Parkinson
8b9a525500
Added zero test at threshold.
2019-02-14 19:59:36 +00:00
Matthew Parkinson
dc19b5ace2
Test to check external pointer on deallocated objects
...
This fails an assertion as it reads from a "head" and assumes it is a
sizeclass. This leads to accessing memory out of bounds.
2019-01-18 21:11:01 +00:00
Matthew Parkinson
272bebb927
Reduce size of test on 32bit
2019-01-16 14:38:10 +00:00
Matthew Parkinson
4f9d991449
Initial commit of snmalloc
...
History squashed from internal development.
Internal history has commit hash:
e27a0e485c44a5003a802de2661ce3b21e120316
2019-01-15 14:17:55 +00:00