Page MenuHomePhabricator

[WIP][scudo][standalone] Make secondary cache configurable at runtime
AbandonedPublic

Authored by cryptoad on Jun 9 2020, 2:55 PM.

Details

Reviewers
None
Summary

We were requested recently to make the secondary cache more configurable
at runtime, allowing for changes to the maximum number of entries that
the cache can hold, as well as the maximum size of an entry that can be
cached.

The approach chosen is to some mallopt options that allow setting those
at the allocator level.

Diff Detail

Unit TestsFailed

TimeTest
240 mslinux > Profile-x86_64.Profile-x86_64::Unknown Unit Message ("")
Script: -- : 'RUN: at line 3'; /mnt/disks/ssd0/agent/premerge-debian-5d5d95fcbb-ts6dn-2/llvm-project/premerge-checks/build/./bin/clang -m64 -ldl -fprofile-instr-generate=/mnt/disks/ssd0/agent/premerge-debian-5d5d95fcbb-ts6dn-2/llvm-project/premerge-checks/build/projects/compiler-rt/test/profile/Profile-x86_64/Output/instrprof-gc-sections.c.tmp.profraw -fuse-ld=lld -fcoverage-mapping -mllvm -enable-name-compression=false -DCODE=1 -ffunction-sections -fdata-sections -Wl,--gc-sections -o /mnt/disks/ssd0/agent/premerge-debian-5d5d95fcbb-ts6dn-2/llvm-project/premerge-checks/build/projects/compiler-rt/test/profile/Profile-x86_64/Output/instrprof-gc-sections.c.tmp /mnt/disks/ssd0/agent/premerge-debian-5d5d95fcbb-ts6dn-2/llvm-project/premerge-checks/compiler-rt/test/profile/instrprof-gc-sections.c
160 mslinux > cfi-devirt-lld-thinlto-x86_64.cfi-devirt-lld-thinlto-x86_64::Unknown Unit Message ("")
Script: -- : 'RUN: at line 1'; /mnt/disks/ssd0/agent/premerge-debian-5d5d95fcbb-ts6dn-2/llvm-project/premerge-checks/build/./bin/clang -m64 -fuse-ld=lld -flto=thin -fsanitize=cfi -fwhole-program-vtables --driver-mode=g++ -fvisibility=hidden -c -DTU1 -o /mnt/disks/ssd0/agent/premerge-debian-5d5d95fcbb-ts6dn-2/llvm-project/premerge-checks/build/projects/compiler-rt/test/cfi/Devirt-lld-thinlto-x86_64/Output/anon-namespace.cpp.tmp1.o /mnt/disks/ssd0/agent/premerge-debian-5d5d95fcbb-ts6dn-2/llvm-project/premerge-checks/compiler-rt/test/cfi/anon-namespace.cpp
130 mslinux > cfi-devirt-lld-thinlto-x86_64.cfi-devirt-lld-thinlto-x86_64::Unknown Unit Message ("")
Script: -- : 'RUN: at line 1'; /mnt/disks/ssd0/agent/premerge-debian-5d5d95fcbb-ts6dn-2/llvm-project/premerge-checks/build/./bin/clang -m64 -fuse-ld=lld -flto=thin -fsanitize=cfi -fwhole-program-vtables --driver-mode=g++ -fvisibility=hidden -o /mnt/disks/ssd0/agent/premerge-debian-5d5d95fcbb-ts6dn-2/llvm-project/premerge-checks/build/projects/compiler-rt/test/cfi/Devirt-lld-thinlto-x86_64/Output/bad-cast.cpp.tmp1 /mnt/disks/ssd0/agent/premerge-debian-5d5d95fcbb-ts6dn-2/llvm-project/premerge-checks/compiler-rt/test/cfi/bad-cast.cpp
90 mslinux > cfi-devirt-lld-thinlto-x86_64.cfi-devirt-lld-thinlto-x86_64::Unknown Unit Message ("")
Script: -- : 'RUN: at line 2'; /mnt/disks/ssd0/agent/premerge-debian-5d5d95fcbb-ts6dn-2/llvm-project/premerge-checks/build/./bin/clang -m64 -fuse-ld=lld -flto=thin -fsanitize=cfi -fwhole-program-vtables --driver-mode=g++ -fvisibility=hidden -o /mnt/disks/ssd0/agent/premerge-debian-5d5d95fcbb-ts6dn-2/llvm-project/premerge-checks/build/projects/compiler-rt/test/cfi/Devirt-lld-thinlto-x86_64/Output/bad-split.cpp.tmp1 /mnt/disks/ssd0/agent/premerge-debian-5d5d95fcbb-ts6dn-2/llvm-project/premerge-checks/compiler-rt/test/cfi/bad-split.cpp && /mnt/disks/ssd0/agent/premerge-debian-5d5d95fcbb-ts6dn-2/llvm-project/premerge-checks/build/projects/compiler-rt/test/cfi/Devirt-lld-thinlto-x86_64/Output/bad-split.cpp.tmp1
110 mslinux > cfi-devirt-lld-thinlto-x86_64.cfi-devirt-lld-thinlto-x86_64::Unknown Unit Message ("")
Script: -- : 'RUN: at line 1'; /mnt/disks/ssd0/agent/premerge-debian-5d5d95fcbb-ts6dn-2/llvm-project/premerge-checks/build/./bin/clang -m64 -fuse-ld=lld -flto=thin -fsanitize=cfi -fwhole-program-vtables --driver-mode=g++ -fvisibility=hidden -o /mnt/disks/ssd0/agent/premerge-debian-5d5d95fcbb-ts6dn-2/llvm-project/premerge-checks/build/projects/compiler-rt/test/cfi/Devirt-lld-thinlto-x86_64/Output/base-derived-destructor.cpp.tmp1 /mnt/disks/ssd0/agent/premerge-debian-5d5d95fcbb-ts6dn-2/llvm-project/premerge-checks/compiler-rt/test/cfi/base-derived-destructor.cpp
View Full Test Results (113 Failed)

Event Timeline

cryptoad created this revision.Jun 9 2020, 2:55 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 9 2020, 2:55 PM
Herald added subscribers: Restricted Project, jfb. · View Herald Transcript
cryptoad abandoned this revision.Mon, Jul 27, 9:47 AM