summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJason Evans <jasone@canonware.com>2015-07-25 01:18:03 (GMT)
committerJason Evans <jasone@canonware.com>2015-07-25 01:20:48 (GMT)
commit40cbd30d508b0d4e6462f5c36ffdbf6c1f29da22 (patch)
tree5390c5bcb712213adcf545ca78bfb949ff5a027b /test
parent87ccb5554769d915338b9a980d36359a5c6ec3fa (diff)
downloadjemalloc-40cbd30d508b0d4e6462f5c36ffdbf6c1f29da22.zip
jemalloc-40cbd30d508b0d4e6462f5c36ffdbf6c1f29da22.tar.gz
jemalloc-40cbd30d508b0d4e6462f5c36ffdbf6c1f29da22.tar.bz2
Fix huge_ralloc_no_move() to succeed more often.
Fix huge_ralloc_no_move() to succeed if an allocation request results in the same usable size as the existing allocation, even if the request size is smaller than the usable size. This bug did not cause correctness issues, but it could cause unnecessary moves during reallocation.
Diffstat (limited to 'test')
-rw-r--r--test/integration/rallocx.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/integration/rallocx.c b/test/integration/rallocx.c
index b698072..8b6cde3 100644
--- a/test/integration/rallocx.c
+++ b/test/integration/rallocx.c
@@ -55,8 +55,9 @@ validate_fill(const void *p, uint8_t c, size_t offset, size_t len)
for (i = 0; i < len; i++) {
uint8_t b = buf[offset+i];
if (b != c) {
- test_fail("Allocation at %p contains %#x rather than "
- "%#x at offset %zu", p, b, c, offset+i);
+ test_fail("Allocation at %p (len=%zu) contains %#x "
+ "rather than %#x at offset %zu", p, len, b, c,
+ offset+i);
ret = true;
}
}