[all-commits] [llvm/llvm-project] 887f1e: [llvm-jitlink] Fix a bug in llvm-jitlink's Slab al...

lhames via All-commits all-commits at lists.llvm.org
Sun Feb 13 19:28:51 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 887f1e49d0629fe870361b00d3cb8fb07374873f
      https://github.com/llvm/llvm-project/commit/887f1e49d0629fe870361b00d3cb8fb07374873f
  Author: Lang Hames <lhames at gmail.com>
  Date:   2022-02-13 (Sun, 13 Feb 2022)

  Changed paths:
    M llvm/tools/llvm-jitlink/llvm-jitlink.cpp

  Log Message:
  -----------
  [llvm-jitlink] Fix a bug in llvm-jitlink's Slab allocator.

The slab delta (used to link as if allocated at a specified address) should
remain constant.The update to the delta was accidentally introduced in
962a2479b57f5, but hasn't caused any failures as it only breaks in an obvious
way for multi-file exec uses (our regression tests are all -noexec, and tend to
be single-file).

No testcase here: this is an obscure utility for testing support, and an
uncommon use-case. If the slab allocator is ever moved into LLVM we could add
a unit test to catch this.




More information about the All-commits mailing list