diff options
author | Jason Evans <je@fb.com> | 2014-01-08 00:47:56 (GMT) |
---|---|---|
committer | Jason Evans <je@fb.com> | 2014-01-08 00:54:17 (GMT) |
commit | 6b694c4d47278cddfaaedeb7ee49fa5757e35ed5 (patch) | |
tree | af5722f43f512489a10ed7cacb4f9de890ee0cfc /test/unit/quarantine.c | |
parent | e18c25d23de0e845f0ee7e11d02c1be044738a3c (diff) | |
download | jemalloc-6b694c4d47278cddfaaedeb7ee49fa5757e35ed5.zip jemalloc-6b694c4d47278cddfaaedeb7ee49fa5757e35ed5.tar.gz jemalloc-6b694c4d47278cddfaaedeb7ee49fa5757e35ed5.tar.bz2 |
Add junk/zero filling unit tests, and fix discovered bugs.
Fix growing large reallocation to junk fill new space.
Fix huge deallocation to junk fill when munmap is disabled.
Diffstat (limited to 'test/unit/quarantine.c')
-rw-r--r-- | test/unit/quarantine.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/unit/quarantine.c b/test/unit/quarantine.c index d8a65e2..4534923 100644 --- a/test/unit/quarantine.c +++ b/test/unit/quarantine.c @@ -73,8 +73,8 @@ TEST_BEGIN(test_quarantine_redzone) test_skip_if(!config_fill); - arena_redzone_corruption_orig = arena_redzone_corruption_fptr; - arena_redzone_corruption_fptr = arena_redzone_corruption_replacement; + arena_redzone_corruption_orig = arena_redzone_corruption; + arena_redzone_corruption = arena_redzone_corruption_replacement; /* Test underflow. */ detected_redzone_corruption = false; @@ -94,7 +94,7 @@ TEST_BEGIN(test_quarantine_redzone) assert_true(detected_redzone_corruption, "Did not detect redzone corruption"); - arena_redzone_corruption_fptr = arena_redzone_corruption_orig; + arena_redzone_corruption = arena_redzone_corruption_orig; } TEST_END |