-
Notifications
You must be signed in to change notification settings - Fork 265
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exclusive keystore locking #3907
Conversation
With LTO, the Slightly changing the syntax makes LTO no longer inline The problem occurs using both Reproducible on macOS 12.5 with Xcode 13.4.1 on Nim compiler 1.6 (5f61f1594d0c11caf0fb650e3d3bc32cf8f38890) on an Intel MacBook Pro (16-inch, 2019) when doing a clean re-build:
Disabling LTO fixes it (ensure clean re-build)
At this time, I have not identified a minimal program to reproduce this problem. |
In Curiously,
What works, though, is to drop the |
Regarding |
After going through the generated C code thoroughly once more, this issue is actually rooted in the Nim --> C stage, not in C --> ASM! It is surfaced by aggressive optimization levels (UB), and promoted by inlining (which LTO increases). Reported upstream with minimal example: nim-lang/Nim#20107 |
5e664f3
to
4e6dbeb
Compare
Address #3686 and #3080
This PR requires status-im/nim-stew#116 to be merged.