[PATCH] D151891: Increase memory of BOLT runtime instrumentation bump allocator used for writing resulting profile
Jakub Beránek via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 7 03:54:59 PDT 2023
Kobzol updated this revision to Diff 529238.
Kobzol added a comment.
Looks like I did mess up and I should have uploaded the complete diff without any relative changes to previous diffs. Did that now.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D151891/new/
https://reviews.llvm.org/D151891
Files:
bolt/runtime/instr.cpp
Index: bolt/runtime/instr.cpp
===================================================================
--- bolt/runtime/instr.cpp
+++ bolt/runtime/instr.cpp
@@ -1471,6 +1471,7 @@
int FD = openProfile();
BumpPtrAllocator Alloc;
+ Alloc.setMaxSize(0x6400000);
const uint8_t *FuncDesc = Ctx.FuncDescriptions;
for (int I = 0, E = __bolt_instr_num_funcs; I < E; ++I) {
FuncDesc = writeFunctionProfile(FD, Ctx, FuncDesc, Alloc);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D151891.529238.patch
Type: text/x-patch
Size: 438 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230607/6fe720a3/attachment.bin>
More information about the llvm-commits
mailing list