]> sourceware.org Git - systemtap.git/commitdiff
stapbpf.cxx (instantiate_maps) :: temporary fix for PR24324 pending better ideas
authorSerhei Makarov <smakarov@redhat.com>
Thu, 4 Apr 2019 15:58:33 +0000 (11:58 -0400)
committerSerhei Makarov <smakarov@redhat.com>
Thu, 4 Apr 2019 15:58:53 +0000 (11:58 -0400)
stapbpf/stapbpf.cxx

index adfdc1abd490180d0dda54794b39c3b4c0ca5420..1fba3e2a653cfdac206cd81aeb66704dc738a308 100644 (file)
@@ -323,6 +323,10 @@ instantiate_maps (Elf64_Shdr *shdr, Elf_Data *data)
     curr_rlimit.rlim_cur = rlim_orig;
   if (curr_rlimit.rlim_max < rlim_max_orig) // handle overflow
     curr_rlimit.rlim_max = rlim_max_orig;
+  // TODOXXX: PR24324 -- EXPERIMENTAL fix for aggressive resource limits.
+  // Other Tools do something like this but it doesn't solve all our problems.
+  curr_rlimit.rlim_cur = RLIM_INFINITY;
+  curr_rlimit.rlim_max = RLIM_INFINITY;
 
   rc = setrlimit(RLIMIT_MEMLOCK, &curr_rlimit);
   if (rc < 0)
This page took 0.026767 seconds and 5 git commands to generate.