[all-commits] [llvm/llvm-project] 941188: [llvm-exegesis] Fix X86LbrCounter destructor to co...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Tue Jun 15 06:25:31 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 941188e9653463bc269ecb43e87ec22c63a4a02b
      https://github.com/llvm/llvm-project/commit/941188e9653463bc269ecb43e87ec22c63a4a02b
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2021-06-15 (Tue, 15 Jun 2021)

  Changed paths:
    M llvm/tools/llvm-exegesis/lib/X86/X86Counter.cpp

  Log Message:
  -----------
  [llvm-exegesis] Fix X86LbrCounter destructor to correctly unmap memory and not double-close fd (PR50620)

As was reported on PR50620, the X86LbrCounter destructor was double-closing the filedescriptor and not unmapping the buffer.

Differential Revision: https://reviews.llvm.org/D104201




More information about the All-commits mailing list