diff options
| author | Florian Bartels <Florian.Bartels@elektrobit.com> | 2022-12-06 09:32:11 +0100 |
|---|---|---|
| committer | Florian Bartels <Florian.Bartels@elektrobit.com> | 2022-12-06 09:38:09 +0100 |
| commit | 980065ab23650452c33bb47ef66d75fbfbcb6e04 (patch) | |
| tree | f3d46669b7c256204f7095bb41f1a842b0c10666 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | ed61c139c2bc778ebb91f5dd6a5393aa20467f78 (diff) | |
| download | rust-980065ab23650452c33bb47ef66d75fbfbcb6e04.tar.gz rust-980065ab23650452c33bb47ef66d75fbfbcb6e04.zip | |
Make sentinel value configurable
There are OSs that always return the lowest free value. The algorithm in `lazy_init` always avoids keys with the sentinel value. In affected OSs, this means that each call to `lazy_init` will always request two keys from the OS and returns/frees the first one (with sentinel value) immediately afterwards. By making the sentinel value configurable, affected OSs can use a different value than zero to prevent this performance issue.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
