Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion portability/huge_page_detection.cc
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ static bool check_huge_pages_in_practice(void)
if ((long)second==-1) perror("mmap failed");
assert((long)second%TWO_MB == 0);

const long pagesize = 4096;
const long pagesize = sysconf(_SC_PAGESIZE);
const long n_pages = TWO_MB/pagesize;
unsigned char vec[n_pages];
{
Expand Down
Loading