summaryrefslogtreecommitdiffstats
path: root/test/unit/zero.c
Commit message (Collapse)AuthorAgeFilesLines
* SC: Remove global data.David Goldblatt2018-07-231-2/+1
| | | | | | | The global data is mostly only used at initialization, or for easy access to values we could compute statically. Instead of consuming that space (and risking TLB misses), we can just pass around a pointer to stack data during bootstrapping.
* SC: Make some key size classes static.David Goldblatt2018-07-131-2/+2
| | | | | | The largest small class, smallest large class, and largest large class may all be needed down fast paths; to avoid the risk of touching another cache line, we can make them available as constants.
* Hide size class computation behind a layer of indirection.David Goldblatt2018-07-131-2/+3
| | | | | | | | | This class removes almost all the dependencies on size_classes.h, accessing the data there only via the new module sc.h, which does not depend on any configuration options. In a subsequent commit, we'll remove the configure-time size class computations, doing them at boot time, instead.
* Use MALLOC_CONF rather than malloc_conf for tests.Jason Evans2017-02-231-5/+0
| | | | | | | | | malloc_conf does not reliably work with MSVC, which complains of "inconsistent dll linkage", i.e. its inability to support the application overriding malloc_conf when dynamically linking/loading. Work around this limitation by adding test harness support for per test shell script sourcing, and converting all tests to use MALLOC_CONF instead of malloc_conf.
* Replace tabs following #define with spaces.Jason Evans2017-01-211-1/+1
| | | | This resolves #564.
* Remove extraneous parens around return arguments.Jason Evans2017-01-211-2/+2
| | | | This resolves #540.
* Update brace style.Jason Evans2017-01-211-8/+4
| | | | | | | Add braces around single-line blocks, and remove line breaks before function-opening braces. This resolves #537.
* Remove leading blank lines from function bodies.Jason Evans2017-01-131-3/+0
| | | | This resolves #535.
* Remove all vestiges of chunks.Jason Evans2016-10-121-1/+1
| | | | | | | | Remove mallctls: - opt.lg_chunk - stats.cactive This resolves #464.
* Rename huge to large.Jason Evans2016-06-061-2/+2
|
* Use huge size class infrastructure for large size classes.Jason Evans2016-06-061-10/+1
|
* Remove redzone support.Jason Evans2016-05-131-1/+1
| | | | This resolves #369.
* Remove quarantine support.Jason Evans2016-05-131-1/+1
|
* Clean up char vs. uint8_t in junk filling code.Jason Evans2016-04-111-7/+9
| | | | Consistently use uint8_t rather than char for junk filling code.
* Rename arena_maxclass to large_maxclass.Jason Evans2015-09-121-2/+2
| | | | | arena_maxclass is no longer an appropriate name, because arenas also manage huge allocations.
* Fix message formatting errors uncovered by p_test_fail() refactoring.Jason Evans2014-03-301-1/+1
|
* Add junk/zero filling unit tests, and fix discovered bugs.Jason Evans2014-01-081-0/+78
Fix growing large reallocation to junk fill new space. Fix huge deallocation to junk fill when munmap is disabled.