Skip to content

Commit 2b82ed4

Browse files
committed
Auto merge of rust-lang#146019 - joboet:better-dlsym, r=tgross35
std: optimize `dlsym!` macro and add a test for it The `dlsym!` macro always ensures that the name string is nul-terminated, so there is no need to perform the check at runtime. Also, acquire loads are generally faster than a load and a barrier, so use them. This is only false in the case where the symbol is missing, but that shouldn't matter too much.
2 parents ea4ed00 + 40b4f58 commit 2b82ed4

File tree

0 file changed

+0
-0
lines changed

    0 file changed

    +0
    -0
    lines changed

    0 commit comments

    Comments
     (0)