[Openmp-commits] [PATCH] D67326: [OpenMP] FreeBSD address check if mapped more native
Jonas Hahnfeld via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Wed Sep 11 08:26:18 PDT 2019
Hahnfeld added inline comments.
================
Comment at: openmp/runtime/src/z_Linux_util.cpp:2030
+ return 0;
+ lstsz = lstsz * 4 / 3;
+ buf = reinterpret_cast<char *>(kmpc_malloc(lstsz));
----------------
Hahnfeld wrote:
> Can you add a comment explaining why this is necessary?
Sorry, I still don't get why the code needs `lstsz * 4 / 3`, I'm not really familiar with the `sysctl` interface.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D67326/new/
https://reviews.llvm.org/D67326
More information about the Openmp-commits
mailing list