[Openmp-commits] [PATCH] D26001: Use getpagesize() instead of PAGE_SIZE macro when KMP_OS_LINUX is true

Jonathan Peyton via Openmp-commits openmp-commits at lists.llvm.org
Wed Oct 26 11:48:26 PDT 2016


jlpeyton added a comment.

Inside kmp_os.h (around the PAGE_SIZE code), could you have:

  #if KMP_OS_LINUX
  # define KMP_GET_PAGE_SIZE() getpagesize()
  #else
  # define KMP_GET_PAGE_SIZE() PAGE_SIZE
  #endif

And then `const int page_size = KMP_GET_PAGE_SIZE()` inside kmp_alloc.c and kmp_runtime.c


https://reviews.llvm.org/D26001





More information about the Openmp-commits mailing list