-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
update Miri #114932
update Miri #114932
Conversation
llvm.prefetch is not a math function fixes the comment in src/shims/foreign_items.rs
Add checked float-to-int helper function As discussed in rust-lang/miri#2989 (comment)
Automatic sync from rustc
[nit][typo] Fix out of order words.
C `mem` function shims: consistently treat "invalid" pointers as UB Depends on rust-lang#113435.
Co-authored-by: Ralf Jung <post@ralfj.de>
It's similar to rust-lang/miri#3021 and should improve maintainability.
Automatic sync from rustc
…Jung Replace hand-written binary search with Vec::binary_search_by. It's similar to rust-lang/miri#3021 and should improve maintainability.
When reporting a heap use-after-free, say where the allocation was allocated and deallocated This is a partial solution to: rust-lang/miri#2917 Currently in the interpreter, we only have accurate information for where heap allocations are allocated and deallocated (see rust-lang/miri#2940 (comment)). So this just implements support for allocations where the information is already available, and the full support will require more interpreter tweaks.
on out-of-bounds error, show where the allocation was created This seems useful, I think? r? `@saethlin`
If `size > 0` current implementation will first create an empty vec and then push an element into it, which will cause a resize that can be easily avoided. It's obviously not a big deal, but this also gets rid of `mut` local variable.
Avoid unnecessary Vec resize. If `size > 0` current implementation will first create an empty vec and then push an element into it, which will cause a resize that can be easily avoided. It's obviously not a big deal, but this also gets rid of `mut` local variable.
The Miri subtree was changed cc @rust-lang/miri |
@bors r+ p=1 |
☀️ Test successful - checks-actions |
Finished benchmarking commit (4a0402c): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesThis benchmark run did not return any relevant results for this metric. Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 632.38s -> 635.726s (0.53%) |
r? @ghost