about summary refs log tree commit diff
path: root/library/std/src/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorMichael Bradshaw <mjbshaw@google.com>2022-03-22 20:21:56 -0600
committerGitHub <noreply@github.com>2022-03-22 20:21:56 -0600
commit3f7f5e8a2e3c9bb134d160241a6695bb379db647 (patch)
tree452a85c7afcc464161ce53d8ddf2b22033eab779 /library/std/src/sys/unix/stack_overflow.rs
parenta4a5e79814fb4d1568fb0ea5ca50f810b071ae12 (diff)
downloadrust-3f7f5e8a2e3c9bb134d160241a6695bb379db647.tar.gz
rust-3f7f5e8a2e3c9bb134d160241a6695bb379db647.zip
Optimize RcInnerPtr::inc_strong instruction count
Inspired by this internals thread: https://internals.rust-lang.org/t/rc-optimization-on-64-bit-targets/16362

[The generated assembly is a bit smaller](https://rust.godbolt.org/z/TeTnf6144) and is a more efficient usage of the CPU's instruction cache. `unlikely` doesn't impact any of the small artificial tests I've done, but I've included it in case it might help more complex scenarios when this is inlined.
Diffstat (limited to 'library/std/src/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions