Add support for 16K pages
Removes base::kPageSize and make everything depend on
base::GetPageSize().
There is only one thing missing that I need to figure out:
the fact that this needs a:
extra_target_ldflags="-Wl,-z,max-page-size=65536"
to work.
I need to consult with 16K experts to figure out what's
the best way forward.
Test: all existing tests pass.
Test: manual smoke test of traced_probes & traced_perf
Bug: 269635302
Change-Id: I105e02ad364f9e8daffbf5cb2235493fda8dca11
diff --git a/gn/standalone/BUILD.gn b/gn/standalone/BUILD.gn
index 34f9ae1..1fb8196 100644
--- a/gn/standalone/BUILD.gn
+++ b/gn/standalone/BUILD.gn
@@ -172,7 +172,10 @@
libs = []
if ((is_android || is_linux) && !is_wasm) {
- ldflags += [ "-Wl,--build-id" ]
+ ldflags += [
+ "-Wl,--build-id",
+ "-Wl,-z,max-page-size=16384",
+ ]
}
if (is_clang || !is_win) { # Clang or GCC, but not MSVC.