aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/X86/Disassembler/X86Disassembler.cpp
diff options
context:
space:
mode:
authorKyle Evans <kevans91@users.noreply.github.com>2024-10-31 21:20:46 -0500
committerGitHub <noreply@github.com>2024-10-31 19:20:46 -0700
commit2606a58bc0b675e5ca6030bf6310aaaa00ec7ed1 (patch)
tree09c2d5cbaad54711e86a95a911d0ff9b32b2f559 /llvm/lib/Target/X86/Disassembler/X86Disassembler.cpp
parent0019d06185428243066501c91ccbedb697a4a8a2 (diff)
downloadllvm-2606a58bc0b675e5ca6030bf6310aaaa00ec7ed1.zip
llvm-2606a58bc0b675e5ca6030bf6310aaaa00ec7ed1.tar.gz
llvm-2606a58bc0b675e5ca6030bf6310aaaa00ec7ed1.tar.bz2
compiler-rt: sanitizer_common: use close_range() instead of looping (#114442)
_SC_OPEN_MAX is quite high on FreeBSD, which makes this close() loop a quite obvious problem when attempting to do any kind of debugging in a process that uses StartSubprocess. Switch to using close_range(2) instead to close them all in a single syscall and dramatically reduce the runtime and syscall trace noise Linux has an equivalent syscall, but I do not have the capacity to test that it works there, so this is limited to SANITIZER_FREEBSD for the time being.
Diffstat (limited to 'llvm/lib/Target/X86/Disassembler/X86Disassembler.cpp')
0 files changed, 0 insertions, 0 deletions