-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Miri: replace canonical_alloc_id mechanism by extern_static_alloc_id #74775
Conversation
…which is called only when a pointer is 'imported' into the machine
This side lgtm. I think the miri side should work before r+ing this side though, so we don't produce a broken miri that needs a rustc fix to work. |
The Miri side is up at rust-lang/miri#1489. No further rustc changes were required, but I decided to also perform a rename that I had suggested in #71194. @oli-obk does that rename seem sensible? |
Jup, both sides and the rename are good with me @bors r+ |
📌 Commit b8fd0f6 has been approved by |
☀️ Test successful - checks-actions, checks-azure |
Adjust for new rustc alloc ID handling and deallocate thread-local statics Miri side of rust-lang/rust#74775. Fixes #1369 Fixes #1488
We only have to call
extern_static_alloc_id
when aPointer
is "imported" from thetcx
to the machine, not on each access. Also drop the old hook for TLS handling, it is not needed any more.The Miri side of this is at rust-lang/miri#1489.
Fixes #71194
r? @oli-obk