Skip to content

Miri subtree update #129785

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

Merged
merged 55 commits into from
Aug 31, 2024
Merged
Changes from 1 commit
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
4abdcd7
provenance_gc: fix comment
RalfJung Aug 19, 2024
4001f59
make the cleanup functions private
RalfJung Aug 19, 2024
e698ca1
fix a misleading comment in TB tests
sun-jacobi Aug 22, 2024
3a423fc
Avoid extra copy by using `retain_mut` and moving the deletion into t…
JoJoDeveloping Aug 22, 2024
e881c42
Auto merge of #3834 - sun-jacobi:tb-comment, r=RalfJung
bors Aug 22, 2024
b8c02eb
Auto merge of #3835 - JoJoDeveloping:tb-fix-stack-overflow, r=RalfJung
bors Aug 22, 2024
7f968ba
fix calling pipe, pipe2, socketpair with a pointer-to-array
RalfJung Aug 24, 2024
17659eb
Auto merge of #3840 - RalfJung:pipe-to-array, r=RalfJung
bors Aug 24, 2024
14f22c6
epoll: Add EINVAL case
tiif Aug 23, 2024
3a9e63c
Auto merge of #3836 - tiif:einval_ctl, r=oli-obk
bors Aug 24, 2024
23f308b
Handle edge case for epoll_ctl
tiif Aug 20, 2024
dbfd066
Auto merge of #3829 - tiif:edgecase, r=oli-obk
bors Aug 24, 2024
f71cdbb
Support blocking for epoll
tiif Aug 19, 2024
e8175a4
Improve comment
tiif Aug 24, 2024
41ab4ec
Pass dest place reference to epoll_wait
tiif Aug 24, 2024
36235b9
Rename event to events
tiif Aug 24, 2024
cd67e47
Fix error in the timeout value error message
tiif Aug 24, 2024
8f178e4
Change timeout value
tiif Aug 24, 2024
7aff711
Check if the thread is blocked before waking them up
tiif Aug 24, 2024
a4d7564
Fix error introduced by rebase
tiif Aug 24, 2024
7e8ca57
Remove thread_id from epoll::thread_ids after timeout
tiif Aug 24, 2024
25ca855
Make blocking_epoll_callback a private function
tiif Aug 24, 2024
7d5be06
Add 0 preemption rate flag for blocking test and fix comment
tiif Aug 24, 2024
09993ce
Add 0 preemption rate flag
tiif Aug 24, 2024
0ed13eb
Add test for triggering notification after timeout
tiif Aug 25, 2024
e01bc04
Preparing for merge from rustc
Aug 26, 2024
55fba66
Merge from rustc
Aug 26, 2024
9fb611c
silence an overreaching clippy lint
RalfJung Aug 26, 2024
2f13379
Auto merge of #3844 - rust-lang:rustup-2024-08-26, r=RalfJung
bors Aug 26, 2024
25e5ac4
Disable tree traversal optimization that is wrong due to lazy nodes.
JoJoDeveloping Aug 26, 2024
eb7bf6e
Auto merge of #3827 - RalfJung:gc-comment, r=RalfJung
bors Aug 27, 2024
6f8fb3c
tree_borrows test: ensure we can actually read the variable
RalfJung Aug 27, 2024
9f35309
Auto merge of #3849 - RalfJung:tb-test, r=RalfJung
bors Aug 27, 2024
664640f
Add testcase for #3846
JoJoDeveloping Aug 27, 2024
9b82f3b
Auto merge of #3847 - JoJoDeveloping:master, r=RalfJung
bors Aug 27, 2024
2765444
Make TB tree traversal bottom-up
JoJoDeveloping Aug 25, 2024
5be5cec
Add explanation to TB's "piecewise bottom-up" traversal
JoJoDeveloping Aug 27, 2024
4318bfe
Auto merge of #3843 - JoJoDeveloping:tb-bottom-up-iteration, r=RalfJung
bors Aug 27, 2024
e26779e
Make Tree Borrows Provenance GC compact the tree
JoJoDeveloping Aug 23, 2024
2d69baa
Auto merge of #3804 - tiif:blockit, r=oli-obk
bors Aug 27, 2024
ae3c270
Preparing for merge from rustc
Aug 28, 2024
f4f3447
Merge from rustc
Aug 28, 2024
3a655aa
Auto merge of #3850 - rust-lang:rustup-2024-08-28, r=RalfJung
bors Aug 28, 2024
abcfc17
Add test for tokio file io and mpsc
tiif Aug 27, 2024
79115f5
Auto merge of #3848 - tiif:tokiotest, r=RalfJung
bors Aug 28, 2024
e34f35e
Add benchmark for TB slowdown
JoJoDeveloping Aug 27, 2024
84134c6
address nits
JoJoDeveloping Aug 28, 2024
9ad0f65
Auto merge of #3837 - JoJoDeveloping:tb-compacting-provenance-gc, r=R…
bors Aug 28, 2024
b0c3324
Preparing for merge from rustc
Aug 29, 2024
a10633a
Merge from rustc
Aug 29, 2024
b5be3ab
fix wasm test
RalfJung Aug 29, 2024
ad7a1aa
Auto merge of #3851 - rust-lang:rustup-2024-08-29, r=RalfJung
bors Aug 29, 2024
0453d9b
Preparing for merge from rustc
Aug 30, 2024
23f4eae
Merge from rustc
Aug 30, 2024
f03c7b2
Auto merge of #3853 - rust-lang:rustup-2024-08-30, r=saethlin
bors Aug 30, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Disable tree traversal optimization that is wrong due to lazy nodes.
See #3846 for more information.
  • Loading branch information
JoJoDeveloping committed Aug 26, 2024
commit 25e5ac48af02e56f5a25795b15913423638234b9
10 changes: 5 additions & 5 deletions src/tools/miri/src/borrow_tracker/tree_borrows/tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,10 @@ impl LocationState {
// the propagation can be skipped next time.
// It is a performance loss not to call this function when a foreign access occurs.
// It is unsound not to call this function when a child access occurs.
fn skip_if_known_noop(
// FIXME: This optimization is wrong, and is currently disabled (by ignoring the
// result returned here). Since we presumably want an optimization like this,
// we should add it back. See #3864 for more information.
fn update_last_foreign_access(
&mut self,
access_kind: AccessKind,
rel_pos: AccessRelatedness,
Expand Down Expand Up @@ -613,10 +616,7 @@ impl<'tcx> Tree {

let old_state = perm.or_insert(LocationState::new_uninit(node.default_initial_perm));

match old_state.skip_if_known_noop(access_kind, rel_pos) {
ContinueTraversal::SkipChildren => return Ok(ContinueTraversal::SkipChildren),
_ => {}
}
old_state.update_last_foreign_access(access_kind, rel_pos);

let protected = global.borrow().protected_tags.contains_key(&node.tag);
let transition = old_state.perform_access(access_kind, rel_pos, protected)?;
Expand Down
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy