Skip to content

Commit

Permalink
Use 64K page size for jemalloc on arm64 / linux.
Browse files Browse the repository at this point in the history
  • Loading branch information
kishorenc committed Apr 23, 2024
1 parent f1e6403 commit 36056fe
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions bazel/jemalloc.BUILD
Expand Up @@ -8,6 +8,14 @@ filegroup(
visibility = ["//visibility:public"],
)

config_setting(
name = "linux_arm64",
constraint_values = [
"@platforms//os:linux",
"@platforms//cpu:arm64",
],
)

configure_make(
name = "jemalloc",
args = ["-j8"],
Expand All @@ -18,6 +26,10 @@ configure_make(
},
"//conditions:default": {},
}),
configure_options = select({
":linux_arm64": ["--with-lg-page=16"],
"//conditions:default": [],
}),
lib_source = ":all_srcs",
out_include_dir = "include/jemalloc",
out_static_libs = ["libjemalloc.a"],
Expand Down

0 comments on commit 36056fe

Please sign in to comment.