diff options
| author | Aiden Grossman <aidengrossman@google.com> | 2025-10-21 16:32:10 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-21 16:32:10 -0700 |
| commit | 93dd17a0e0a437f9c60450db52b019c9d40e3d05 (patch) | |
| tree | 62574796750a091ae5f166d1722bf965d1437172 /llvm/lib/Transforms/Utils/BasicBlockUtils.cpp | |
| parent | fde69fd0bcb139092df370f13ef8b61ebd658105 (diff) | |
| download | llvm-93dd17a0e0a437f9c60450db52b019c9d40e3d05.zip llvm-93dd17a0e0a437f9c60450db52b019c9d40e3d05.tar.gz llvm-93dd17a0e0a437f9c60450db52b019c9d40e3d05.tar.bz2 | |
[lit] Ensure ulimit does not persist across tests (#164485)
When constructing a container in a default argument in Python, we
actually end up with a reference to the same default container for every
invocation of the function. Given this happened with the ulimit variable
in ShellEnvironment, we ended up persisting limits across tests. This
would cause some LLVM tests to fail, particularly jitlink and dsymutil
tests, if they ended up running after the one clang test that uses
ulimit -v to set a maximum amount of memory that can be allocated. This
patch fixes that behavior by constructing the dict inside the function
to ensure we get a new instance and adds test coverage.
Diffstat (limited to 'llvm/lib/Transforms/Utils/BasicBlockUtils.cpp')
0 files changed, 0 insertions, 0 deletions
