Files
rust/tests/run-pass
bors a0485c5a90 Auto merge of #1686 - thomcc:cmpxchg_weak, r=oli-obk
Add random failures to compare_exchange_weak

In practice this is pretty useful for detecting bugs.

This fails more frequently than realistic (~~50%~~ (now 80%, controlled by a flag) of the time). I couldn't find any existing code that tries to model this (tsan, cdschecker, etc all seem to have TODOs there). Relacy models it with a 25% or 50% failure chance depending on some settings.

CC `@JCTyblaidd` who wrote the code this modifies initially, and seems interested in this subject.
2021-01-28 09:52:04 +00:00
..
2020-03-30 10:23:16 +02:00
2019-02-26 18:37:45 +00:00
2020-03-23 23:53:54 +01:00
2020-11-19 09:21:11 +01:00
2020-11-19 09:21:11 +01:00
2020-09-10 08:44:27 +02:00
2019-02-26 18:37:45 +00:00
2020-10-29 20:57:38 +01:00
2020-10-27 17:26:36 +01:00
2018-12-19 12:16:07 +01:00
2018-08-30 10:42:18 +02:00
2019-11-25 15:08:47 +01:00
2019-02-26 18:37:45 +00:00
2019-02-26 18:37:45 +00:00
2020-10-29 20:57:38 +01:00
2019-09-20 08:53:35 +02:00
2020-03-27 08:43:08 -04:00
2020-03-06 08:21:53 -05:00
2019-04-21 12:36:17 +02:00
2018-08-26 15:15:26 +02:00
2019-11-25 15:08:47 +01:00
2021-01-26 11:43:39 +01:00
2019-02-09 15:52:59 +01:00
2020-11-10 16:51:07 +01:00
2020-10-04 12:06:51 -04:00
2020-10-04 12:06:51 -04:00
2019-02-13 10:07:31 +01:00
2020-09-10 08:44:27 +02:00
2020-05-20 00:00:35 +02:00
2018-12-19 12:16:07 +01:00
2021-01-26 11:43:39 +01:00
2019-02-26 18:37:45 +00:00
2020-01-19 10:03:18 -06:00
2019-02-26 18:37:45 +00:00
2020-01-19 10:03:18 -06:00
2019-02-26 18:37:45 +00:00
2019-02-26 18:37:45 +00:00
2019-06-30 15:31:14 +01:00
2019-02-26 18:37:45 +00:00
2020-06-22 11:32:01 +02:00
2019-11-08 12:43:26 +01:00
2020-09-02 20:57:20 -05:00
2020-09-10 08:44:27 +02:00
2019-08-04 16:44:32 -04:00
2016-09-27 11:10:25 +02:00
2020-03-22 08:55:39 +01:00
2016-09-27 11:10:25 +02:00
2019-02-26 18:37:45 +00:00
2020-06-20 11:48:42 +02:00
2019-02-06 11:47:32 +01:00
2020-01-19 10:03:18 -06:00
2018-12-02 11:14:24 +01:00
2020-09-07 15:05:26 -05:00
2020-09-07 11:29:47 +02:00
2018-08-26 20:42:02 +02:00
2019-02-15 10:41:12 +01:00
2020-06-01 01:12:31 +02:00