diff options
author | 2023-12-13 11:54:28 -0800 | |
---|---|---|
committer | 2023-12-13 11:55:17 -0800 | |
commit | dcd5bd5fd593e31465af3d9ef291d26c646b0a4f (patch) | |
tree | ba96a98b6fad60770721aa98b4190ba876ffb118 /absl/base/internal | |
parent | 031d99ab8761084ea3499688dc82c27abd10314e (diff) |
Redirect `GetPageSize()` to C library `getpagesize()` on Hexagon DSP.
PiperOrigin-RevId: 590669848
Change-Id: Ibc703b0fbedede86ddaa9682049b7dcc2250fbfb
Diffstat (limited to 'absl/base/internal')
-rw-r--r-- | absl/base/internal/low_level_alloc.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/absl/base/internal/low_level_alloc.cc b/absl/base/internal/low_level_alloc.cc index 6d2cfeac..a563f7b9 100644 --- a/absl/base/internal/low_level_alloc.cc +++ b/absl/base/internal/low_level_alloc.cc @@ -329,7 +329,7 @@ size_t GetPageSize() { SYSTEM_INFO system_info; GetSystemInfo(&system_info); return std::max(system_info.dwPageSize, system_info.dwAllocationGranularity); -#elif defined(__wasm__) || defined(__asmjs__) +#elif defined(__wasm__) || defined(__asmjs__) || defined(__hexagon__) return getpagesize(); #else return static_cast<size_t>(sysconf(_SC_PAGESIZE)); |