Yinan Zhang
21dfa4300d
Change assert_* to expect_* in tests
...
```
grep -Irl assert_ test/ | xargs sed -i \
's/witness_assert/witness_do_not_replace/g';
grep -Irl assert_ test/ | xargs sed -i \
's/malloc_mutex_assert_owner/malloc_mutex_do_not_replace_owner/g';
grep -Ir assert_ test/ | grep -o "[_a-zA-Z]*assert_[_a-zA-Z]*" | \
grep -v "^assert_"; # confirm no output
grep -Irl assert_ test/ | xargs sed -i 's/assert_/expect_/g';
grep -Irl witness_do_not_replace test/ | xargs sed -i \
's/witness_do_not_replace/witness_assert/g';
grep -Irl malloc_mutex_do_not_replace_owner test/ | xargs sed -i \
's/malloc_mutex_do_not_replace_owner/malloc_mutex_assert_owner/g';
```
2020-02-19 16:03:16 -08:00
Qi Wang
f70785de91
Skip test/unit/pack when profiling is enabled.
...
The test assumes no sampled allocations.
2017-12-18 12:47:46 -08:00
Jason Evans
da4cff0279
Support --with-lg-page values larger than system page size.
...
All mappings continue to be PAGE-aligned, even if the system page size
is smaller. This change is primarily intended to provide a mechanism
for supporting multiple page sizes with the same binary; smaller page
sizes work better in conjunction with jemalloc's design.
This resolves #467 .
2017-04-18 19:01:04 -07:00
Jason Evans
de49674fbd
Use MALLOC_CONF rather than malloc_conf for tests.
...
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.
2017-02-23 08:57:02 -08:00
Jason Evans
c0cc5db871
Replace tabs following #define with spaces.
...
This resolves #564 .
2017-01-20 21:45:53 -08:00
Jason Evans
f408643a4c
Remove extraneous parens around return arguments.
...
This resolves #540 .
2017-01-20 21:43:07 -08:00
Jason Evans
c4c2592c83
Update brace style.
...
Add braces around single-line blocks, and remove line breaks before
function-opening braces.
This resolves #537 .
2017-01-20 21:43:07 -08:00
Jason Evans
ffbb7dac3d
Remove leading blank lines from function bodies.
...
This resolves #535 .
2017-01-13 14:49:24 -08:00
Jason Evans
0f04bb1d6f
Rename the arenas.extend mallctl to arenas.create.
2017-01-06 18:58:45 -08:00
Jason Evans
8a4528bdd1
Uniformly cast mallctl[bymib]() oldp/newp arguments to (void *).
...
This avoids warnings in some cases, and is otherwise generally good
hygiene.
2016-11-15 15:01:03 -08:00
Jason Evans
2c95154501
Add packing test, which verifies stable layout policy.
2016-11-15 13:08:33 -08:00