-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Use queue-based RwLock
on more platforms
#123811
Conversation
The Windows stuff is fine. I can't easily test on Windows 7 atm (so help is welcome) but testing the Win7 binary on Windows 10 worked.. I'll wait for the SGX and Xous experts to weigh in on their target. And if someone can test on Windows 7 proper that would be great. I don't foresee any issues though so I wouldn't block on it. |
Looks good to me:
|
Oh, awesome! I had resigned myself to thinking the win7 target would be stuck with a broken implementation of RwLocks, so this is great news! I ran the full core/alloc/std test suite on Windows 7 32-bit and 64-bit, both are passing. LGTM! |
The SGX part also looks good, but I had to apply this patch to keep the compiler happy:
|
Thank you everyone for testing this! @bors r+ |
…llaumeGomez Rollup of 7 pull requests Successful merges: - rust-lang#122811 (Move `SourceMap` initialization) - rust-lang#123512 (Match ergonomics 2024: Implement eat-one-layer) - rust-lang#123811 (Use queue-based `RwLock` on more platforms) - rust-lang#123859 (Remove uneeded clones now that TrustedStep implies Copy) - rust-lang#123979 (Subtype predicates only exist on inference types, so we can allow them to register opaque types within them.) - rust-lang#124016 (Outline default query and hook provider function implementations) - rust-lang#124023 (Allow workproducts without object files.) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#123811 - joboet:queue_em_up, r=ChrisDenton Use queue-based `RwLock` on more platforms This switches over Windows 7, SGX and Xous to the queue-based `RwLock` implementation added in rust-lang#110211, thereby fixing rust-lang#121949 for Windows 7 and partially resolving rust-lang#114581 on SGX. TEEOS can't currently be switched because it doesn't have a good thread parking implementation. CC `@roblabla` `@raoulstrackx` `@xobs` Could you help me test this, please? r? `@ChrisDenton` the Windows stuff should be familiar to you
This switches over Windows 7, SGX and Xous to the queue-based
RwLock
implementation added in #110211, thereby fixing #121949 for Windows 7 and partially resolving #114581 on SGX. TEEOS can't currently be switched because it doesn't have a good thread parking implementation.CC @roblabla @raoulstrackx @xobs Could you help me test this, please?
r? @ChrisDenton the Windows stuff should be familiar to you