Commit 5a66d06e authored by Bradley C. Kuszmaul's avatar Bradley C. Kuszmaul Committed by Yoni Fogel

[t:4934] Merge 44292 from ../tokudb.4934-branch-from.6.0.0. Refs #4934.

git-svn-id: file:///svn/toku/tokudb@44634 c7de825b-a66e-492c-adef-691d508d4ae1
parent 2f8410fe
...@@ -51,16 +51,16 @@ int madvise (void *addr, size_t length, int advice) { ...@@ -51,16 +51,16 @@ int madvise (void *addr, size_t length, int advice) {
char *m=mem; char *m=mem;
if (counter==0) { if (counter==0) {
assert(m+4096==a); assert(m+4096==a);
assert(length=16*1024*1024-4096); assert(length==16*1024*1024-4096);
assert(advice=MADV_DONTNEED); assert(advice==MADV_DONTNEED);
} else if (counter==1) { } else if (counter==1) {
assert(m+2*1024*1024+4096==a); assert(m+2*1024*1024+4096==a);
assert(length=16*1024*1024-2*1024*1024-4096); assert(length==16*1024*1024-2*1024*1024-4096);
assert(advice=MADV_DONTNEED); assert(advice==MADV_DONTNEED);
} else if (counter==2) { } else if (counter==2) {
assert(m+4*1024*1024+4096==a); assert(m+4*1024*1024+4096==a);
assert(length=16*1024*1024-4*1024*1024-4096); assert(length==16*1024*1024-4*1024*1024-4096);
assert(advice=MADV_DONTNEED); assert(advice==MADV_DONTNEED);
} else { } else {
printf("madvise(%p, 0x%lx, %d)\n", addr, length, advice); printf("madvise(%p, 0x%lx, %d)\n", addr, length, advice);
abort(); abort();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment