Skip to content

Ignore the invalid L1 cache line size returned by sysconf()

On some systems, the glibc can return 0 instead of cache-line size to indicate the cache line sizes cannot be determined. This is comment from glibc source code:

/* In general we cannot determine these values.  Therefore we
   return zero which indicates that no information is
   available.  */

As the goal of the check is to determine whether the L1 cache line size is still 64 and we would use this value in case the sysconf() call is not available, we can also ignore the invalid values returned by the sysconf() call.

Closes #3108 (closed)

Merge request reports