Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
needs: build-base-with-docker
strategy:
matrix:
allocator: [ff, fg, gd, hd, hm, iso, je, lf, lp, lt, mesh, mng, mi, mi2, mi3, nomesh, pa, rp, scudo, sm, sn, sg, tbb, tc, yal, tcg]
allocator: [ff, fg, gd, hd, hm, iso, je, kp, lf, lp, lt, mesh, mng, mi, mi2, mi3, nomesh, pa, rp, scudo, sm, sn, sg, tbb, tc, yal, tcg]
testsuite: [allt]
# Used to provide a platform-specific predicate
predicate: [true, false]
Expand Down
3 changes: 2 additions & 1 deletion bench.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# Allocators and tests
# --------------------------------------------------------------------

readonly alloc_all="sys dh ff fg gd hd hm hml iso je lf lp lt mi mi-sec mi2 mi2-sec mi3 mi3-sec mng mesh nomesh pa rp sc scudo sg sm sn sn-sec tbb tc tcg mi-dbg mi2-dbg mi3-dbg xmi xsmi xmi-dbg yal rmalloc"
readonly alloc_all="sys kp dh ff fg gd hd hm hml iso je lf lp lt mi mi-sec mi2 mi2-sec mi3 mi3-sec mng mesh nomesh pa rp sc scudo sg sm sn sn-sec tbb tc tcg mi-dbg mi2-dbg mi3-dbg xmi xsmi xmi-dbg yal rmalloc"
readonly alloc_secure="dh ff gd hm hml iso mi-sec mi2-sec mi3-sec mng pa scudo sg sn-sec sg"
alloc_run="" # allocators to run (expanded by command line options)
alloc_installed="sys" # later expanded to include all installed allocators
Expand Down Expand Up @@ -114,6 +114,7 @@ alloc_lib_add "mesh" "$localdevdir/mesh/build/lib/libmesh$extso"
alloc_lib_add "mng" "$localdevdir/mng/libmallocng$extso"
alloc_lib_add "nomesh" "$localdevdir/nomesh/build/lib/libmesh$extso"
alloc_lib_add "pa" "$localdevdir/pa/partition_alloc_builder/out/Default/libpalib$extso"
alloc_lib_add "kp" "$localdevdir/kp/out/libkamepoolalloc$extso"
alloc_lib_add "rp" "$lib_rp"
alloc_lib_add "sc" "$localdevdir/sc/out/Release/lib.target/libscalloc$extso"
alloc_lib_add "scudo" "$localdevdir/scudo/compiler-rt/lib/scudo/standalone/libscudo$extso"
Expand Down
13 changes: 13 additions & 0 deletions build-bench-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ readonly version_iso=1.2.5
readonly version_je=5.3.1
readonly version_lf=master # ~unmaintained since 2018
readonly version_lp=main
readonly version_kp=v1.0.1
readonly version_lt=master # ~unmaintained since 2019
readonly version_mesh=master # ~unmaintained since 2021
readonly version_mi=v1.8.2
Expand Down Expand Up @@ -97,6 +98,7 @@ setup_mi3=0
setup_mng=0
setup_nomesh=0
setup_pa=0
setup_kp=0
setup_rp=0
setup_sc=0
setup_scudo=0
Expand Down Expand Up @@ -135,6 +137,7 @@ while : ; do
"") break;;
all|none)
all=$flag_arg
setup_kp=$flag_arg
setup_dh=$flag_arg
setup_ff=$flag_arg
setup_fg=$flag_arg
Expand Down Expand Up @@ -230,6 +233,8 @@ while : ; do
setup_rocksdb=$flag_arg;;
linux)
setup_linux=$flag_arg;;
kp)
setup_kp=$flag_arg;;
rp)
setup_rp=$flag_arg;;
sc)
Expand Down Expand Up @@ -281,6 +286,7 @@ while : ; do
echo " mng setup mallocng ($version_mng)"
echo " nomesh setup mesh allocator w/o meshing ($version_mesh)"
echo " pa setup PartitionAlloc ($version_pa)"
echo " kp setup kamepoolalloc ($version_kp)"
echo " rp setup rpmalloc ($version_rp)"
echo " sc setup scalloc ($version_sc)"
echo " scudo setup scudo ($version_scudo)"
Expand Down Expand Up @@ -654,6 +660,13 @@ if test "$setup_je" = "1"; then
popd
fi

if test "$setup_kp" = "1"; then
checkout kp $version_kp https://github.com/northriv/kamepoolalloc
cmake -B out -DCMAKE_BUILD_TYPE=Release
cmake --build out --parallel $procs
popd
fi

if test "$setup_rp" = "1"; then
checkout rp $version_rp https://github.com/mjansson/rpmalloc
if test -f build.ninja; then
Expand Down