src/os/linux/vm/os_linux.cpp

Print this page

        

*** 3000,3010 **** unsigned char vec[1]; unsigned imin = 1, imax = pages + 1, imid; int mincore_return_value = 0; ! assert(imin < imax, "Unexpected page size"); while (imin < imax) { imid = (imax + imin) / 2; nbot = ntop - (imid * page_sz); --- 3000,3010 ---- unsigned char vec[1]; unsigned imin = 1, imax = pages + 1, imid; int mincore_return_value = 0; ! assert(imin <= imax, "Unexpected page size"); while (imin < imax) { imid = (imax + imin) / 2; nbot = ntop - (imid * page_sz);