[PATCH] D151891: Increase memory of BOLT runtime instrumentation bump allocator used for writing resulting profile

Amir Ayupov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 8 10:53:25 PDT 2023


This revision was automatically updated to reflect the committed changes.
Closed by commit rGeaf1b5664b0c: Increase memory of BOLT runtime instrumentation bump allocator used for writing… (authored by Kobzol, committed by Amir).

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.529679.patch
Type: text/x-patch
Size: 438 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230608/301593b0/attachment.bin>


More information about the llvm-commits mailing list