rust/compiler
Trevor Gross 427019e37f
Rollup merge of #128942 - RalfJung:interpret-weak-memory, r=saethlin
miri weak memory emulation: put previous value into initial store buffer

Fixes https://github.com/rust-lang/miri/issues/2164 by doing a read before each atomic write so that we can initialize the store buffer. The read suppresses memory access hooks and UB exceptions, to avoid otherwise influencing the program behavior. If the read fails, we store that as `None` in the store buffer, so that when an atomic read races with the first atomic write to some memory and previously the memory was uninitialized, we can report UB due to reading uninit memory.

``@cbeuw`` this changes a bit the way we initialize the store buffers. Not sure if you still remember all this code, but if you could have a look to make sure this still makes sense, that would be great. :)

r? ``@saethlin``
2024-08-27 01:46:51 -05:00
..
rustc Link std statically in rustc_driver 2024-08-11 04:16:53 +02:00
rustc_abi Add warn(unreachable_pub) to several crates. 2024-08-16 08:46:13 +10:00
rustc_arena Add warn(unreachable_pub) to rustc_arena. 2024-08-16 08:46:22 +10:00
rustc_ast Rollup merge of #126013 - nnethercote:unreachable_pub, r=Urgau 2024-08-27 00:41:57 +02:00
rustc_ast_ir Add warn(unreachable_pub) to several crates. 2024-08-16 08:46:13 +10:00
rustc_ast_lowering Rollup merge of #129626 - compiler-errors:explicit-named, r=fmease 2024-08-27 00:42:02 +02:00
rustc_ast_passes Rollup merge of #126013 - nnethercote:unreachable_pub, r=Urgau 2024-08-27 00:41:57 +02:00
rustc_ast_pretty Add warn(unreachable_pub) to rustc_ast_pretty. 2024-08-16 08:46:46 +10:00
rustc_attr Rollup merge of #126013 - nnethercote:unreachable_pub, r=Urgau 2024-08-27 00:41:57 +02:00
rustc_baked_icu_data Don't add warn(unreachable_pub) to rustc_baked_icu. 2024-08-16 08:46:52 +10:00
rustc_borrowck Rollup merge of #129340 - stephen-lazaro:u/slazaro/issue-129274, r=compiler-errors 2024-08-27 00:42:00 +02:00
rustc_builtin_macros Rollup merge of #126013 - nnethercote:unreachable_pub, r=Urgau 2024-08-27 00:41:57 +02:00
rustc_codegen_cranelift Rollup merge of #128731 - RalfJung:simd-shuffle-vector, r=workingjubilee 2024-08-27 01:46:50 -05:00
rustc_codegen_gcc Rollup merge of #128731 - RalfJung:simd-shuffle-vector, r=workingjubilee 2024-08-27 01:46:50 -05:00
rustc_codegen_llvm Rollup merge of #128731 - RalfJung:simd-shuffle-vector, r=workingjubilee 2024-08-27 01:46:50 -05:00
rustc_codegen_ssa Rollup merge of #126013 - nnethercote:unreachable_pub, r=Urgau 2024-08-27 00:41:57 +02:00
rustc_const_eval Rollup merge of #128942 - RalfJung:interpret-weak-memory, r=saethlin 2024-08-27 01:46:51 -05:00
rustc_data_structures Update indexmap and use IndexMap::append 2024-08-13 16:16:57 -07:00
rustc_driver
rustc_driver_impl Rollup merge of #128762 - fmease:use-more-slice-pats, r=compiler-errors 2024-08-11 07:51:51 +02:00
rustc_error_codes stabilize raw_ref_op 2024-08-18 19:46:53 +02:00
rustc_error_messages Reformat use declarations. 2024-07-29 08:26:52 +10:00
rustc_errors Fix elided_named_lifetimes in code 2024-08-24 19:21:32 +03:00
rustc_expand Use bool in favor of Option<()> for diagnostics 2024-08-21 01:31:11 -04:00
rustc_feature Rollup merge of #129487 - GrigorenkoPV:repr_transparent_external_private_fields, r=compiler-errors 2024-08-25 16:51:05 +02:00
rustc_fluent_macro Update annotate-snippets to 0.11 2024-08-19 20:22:07 +00:00
rustc_fs_util Reformat use declarations. 2024-07-29 08:26:52 +10:00
rustc_graphviz Reformat use declarations. 2024-07-29 08:26:52 +10:00
rustc_hir Auto merge of #127672 - compiler-errors:precise-capturing, r=spastorino 2024-08-20 10:42:55 +00:00
rustc_hir_analysis Rollup merge of #129590 - compiler-errors:ref-tykind, r=fmease 2024-08-26 01:49:04 +02:00
rustc_hir_pretty Use FnSig instead of raw FnDecl for ForeignItemKind::Fn 2024-08-16 14:10:06 -04:00
rustc_hir_typeck Do not ICE on non-ADT rcvr type when looking for crate version collision 2024-08-26 13:02:21 -04:00
rustc_incremental Removes dead code from the compiler 2024-08-25 13:41:39 +08:00
rustc_index library: Move unstable API of new_uninit to new features 2024-08-23 20:52:02 -07:00
rustc_index_macros Remove usage of specialization from newtype_index! 2024-06-30 16:42:53 +00:00
rustc_infer Remove a couple of unused feature enables 2024-08-26 19:52:14 +00:00
rustc_interface Rollup merge of #126985 - Mrmaxmeier:dwarf-embed-source, r=davidtwco 2024-08-27 01:46:49 -05:00
rustc_lexer Reformat use declarations. 2024-07-29 08:26:52 +10:00
rustc_lint Rollup merge of #129600 - traviscross:TC/tie-impl_trait_overcaptures-to-rust-2024, r=compiler-errors 2024-08-26 17:25:34 +02:00
rustc_lint_defs Rollup merge of #129199 - RalfJung:writes_through_immutable_pointer, r=compiler-errors 2024-08-24 22:14:12 +02:00
rustc_llvm Rollup merge of #126985 - Mrmaxmeier:dwarf-embed-source, r=davidtwco 2024-08-27 01:46:49 -05:00
rustc_log Reformat use declarations. 2024-07-29 08:26:52 +10:00
rustc_macros Remove a couple of unused feature enables 2024-08-26 19:52:14 +00:00
rustc_metadata Fix elided_named_lifetimes in code 2024-08-24 19:21:32 +03:00
rustc_middle Rollup merge of #129590 - compiler-errors:ref-tykind, r=fmease 2024-08-26 01:49:04 +02:00
rustc_mir_build Avoid taking reference of &TyKind 2024-08-25 16:02:29 -04:00
rustc_mir_dataflow rename AddressOf -> RawBorrow inside the compiler 2024-08-18 19:46:53 +02:00
rustc_mir_transform Simplify some redundant field names 2024-08-21 01:31:42 -04:00
rustc_monomorphize Avoid taking reference of &TyKind 2024-08-25 16:02:29 -04:00
rustc_next_trait_solver Rollup merge of #128828 - lcnr:search-graph-11, r=compiler-errors 2024-08-14 21:43:07 +08:00
rustc_parse Rollup merge of #128524 - chenyukang:yukang-fix-127930-invalid-outer-style-sugg, r=cjgillot 2024-08-24 21:03:31 -05:00
rustc_parse_format Reformat use declarations. 2024-07-29 08:26:52 +10:00
rustc_passes Rollup merge of #129544 - mu001999-contrib:dead-code/clean, r=compiler-errors 2024-08-26 01:49:03 +02:00
rustc_pattern_analysis Rollup merge of #128965 - Zalathar:no-pat, r=Nadrieril 2024-08-15 18:44:16 -07:00
rustc_privacy Reformat use declarations. 2024-07-29 08:26:52 +10:00
rustc_query_impl Simplify some redundant field names 2024-08-21 01:31:42 -04:00
rustc_query_system fix: simple typo in compiler directory 2024-08-20 20:50:32 +08:00
rustc_resolve mv build_reduced_graph_for_external_crate_res into Resolver 2024-08-26 09:24:42 +08:00
rustc_sanitizers Rollup merge of #129345 - compiler-errors:scratch4, r=jieyouxu 2024-08-21 18:15:06 +02:00
rustc_serialize Reformat use declarations. 2024-07-29 08:26:52 +10:00
rustc_session Rollup merge of #126985 - Mrmaxmeier:dwarf-embed-source, r=davidtwco 2024-08-27 01:46:49 -05:00
rustc_smir Simplify some redundant field names 2024-08-21 01:31:42 -04:00
rustc_span Rollup merge of #129487 - GrigorenkoPV:repr_transparent_external_private_fields, r=compiler-errors 2024-08-25 16:51:05 +02:00
rustc_symbol_mangling Shrink TyKind::FnPtr. 2024-08-09 14:33:25 +10:00
rustc_target Make ArgAbi::make_indirect_force more specific 2024-08-21 02:43:12 +01:00
rustc_trait_selection Rollup merge of #129590 - compiler-errors:ref-tykind, r=fmease 2024-08-26 01:49:04 +02:00
rustc_traits Remove redundant type ops 2024-08-14 14:18:17 -04:00
rustc_transmute Removes dead code from the compiler 2024-08-25 13:41:39 +08:00
rustc_ty_utils Rollup merge of #129032 - jswrenn:transmute-method, r=compiler-errors 2024-08-27 00:41:59 +02:00
rustc_type_ir Rollup merge of #129526 - compiler-errors:fx, r=lqd 2024-08-26 01:49:02 +02:00
rustc_type_ir_macros Reformat use declarations. 2024-07-29 08:26:52 +10:00
stable_mir Reformat use declarations. 2024-07-29 08:26:52 +10:00