page_size_win.cc 404 B

123456789101112131415
  1. // Copyright 2021 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #include "base/memory/page_size.h"
  5. namespace base {
  6. size_t GetPageSize() {
  7. // System pagesize. This value remains constant on x86/64 architectures.
  8. constexpr int PAGESIZE_KB = 4;
  9. return PAGESIZE_KB * 1024;
  10. }
  11. } // namespace base