instance_id stringlengths 26 28 | hints_text stringlengths 0 16k | created_at stringlengths 20 20 | version stringclasses 7
values | test_patch stringlengths 350 480k | issue_numbers sequencelengths 1 2 | patch stringlengths 288 411k | repo stringclasses 1
value | pull_number int64 27 1.1k | base_commit stringlengths 40 40 | problem_statement stringlengths 123 49.6k | environment_setup_commit stringclasses 7
values |
|---|---|---|---|---|---|---|---|---|---|---|---|
crossbeam-rs__crossbeam-1101 | Thanks for the report!
IIUC, insert reduces the refcount of the old value and then sets the new value, so if insert makes the refcount zero, a get that occurs between the time the refcount is reduced and the new value is set will return None because it sees a deleted value with a refcount of zero.
Do you have any pl... | 2024-04-12T12:16:27Z | 0.8 | diff --git a/crossbeam-skiplist/tests/map.rs b/crossbeam-skiplist/tests/map.rs
--- a/crossbeam-skiplist/tests/map.rs
+++ b/crossbeam-skiplist/tests/map.rs
@@ -920,3 +920,24 @@ fn clear() {
assert!(s.is_empty());
assert_eq!(s.len(), 0);
}
+
+// https://github.com/crossbeam-rs/crossbeam/issues/1023
+#[test]
+f... | [
"1023"
] | diff --git a/crossbeam-skiplist/src/base.rs b/crossbeam-skiplist/src/base.rs
--- a/crossbeam-skiplist/src/base.rs
+++ b/crossbeam-skiplist/src/base.rs
@@ -871,33 +871,17 @@ where
// the lifetime of the guard.
let guard = &*(guard as *const _);
- let mut search;
- loop {... | crossbeam-rs/crossbeam | 1,101 | 9e8596105bc9a6b343918b6ad1c9656dc24dc4f9 | crossbeam-skiplist bug
[dependencies]
crossbeam-skiplist = "0.1.1"
```rs
fn main() {
let map: Arc<SkipMap<u32, u32>> = Arc::new(SkipMap::new());
map.insert(1, 2);
let map1 = map.clone();
std::thread::spawn(move||{
let key = 1;
for _ in 0..10_0000 {
let len = map1.... | 9e8596105bc9a6b343918b6ad1c9656dc24dc4f9 |
crossbeam-rs__crossbeam-1045 | Hmm, if I understand correctly, there is no way actually to cause this at this time. (That said, we can do this with zero cost using RAII guards that abort on drop.)
> Hmm, if I understand correctly, there is no way actually to cause this at this time.
At least I hope so. But there is already an [accepted RFC](https... | 2023-12-02T12:21:14Z | 0.8 | diff --git a/crossbeam-channel/src/lib.rs b/crossbeam-channel/src/lib.rs
--- a/crossbeam-channel/src/lib.rs
+++ b/crossbeam-channel/src/lib.rs
@@ -328,16 +328,11 @@
#![doc(test(
no_crate_inject,
attr(
- deny(warnings, rust_2018_idioms),
+ deny(warnings, rust_2018_idioms, single_use_lifetimes),
... | [
"724"
] | diff --git a/Cargo.toml b/Cargo.toml
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -5,7 +5,7 @@ name = "crossbeam"
# - Update README.md
# - Create "crossbeam-X.Y.Z" git tag
version = "0.8.2"
-edition = "2018"
+edition = "2021"
rust-version = "1.61"
license = "MIT OR Apache-2.0"
repository = "https://github.com/crossbeam-r... | crossbeam-rs/crossbeam | 1,045 | 66617f6432e0ecd950da18d35e5d1f21fda6d3d9 | Catch panics in critical section of thread::scope
### The problem
The current implementation of the `scope` function for generating scoped threads contains a critical section:
If an unwinding panic occurs after execution of the user-provided closure but before all scoped threads are successfully joined then a scope... | 9e8596105bc9a6b343918b6ad1c9656dc24dc4f9 |
crossbeam-rs__crossbeam-1037 | "cc https://github.com/rust-lang/rust/pull/117170#discussion_r1373230638\n> While the MSRV of crossb(...TRUNCATED) | 2023-11-05T13:18:17Z | 0.8 | "diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml\n--- a/.github/workflows/ci.yml\n+(...TRUNCATED) | [
"1033"
] | "diff --git a/Cargo.toml b/Cargo.toml\n--- a/Cargo.toml\n+++ b/Cargo.toml\n@@ -6,7 +6,7 @@ name = \"(...TRUNCATED) | crossbeam-rs/crossbeam | 1,037 | 9dd4c9594dd7c84abf04e89192f1bdfe790100f5 | "Use cfg(target_has_atomic) instead of hard coding which targets support atomics\nThis has been stab(...TRUNCATED) | 9e8596105bc9a6b343918b6ad1c9656dc24dc4f9 |
crossbeam-rs__crossbeam-1015 | "This seems an instance of https://github.com/rust-lang/unsafe-code-guidelines/issues/69?\r\n\r\nI d(...TRUNCATED) | 2023-08-13T21:28:50Z | 0.8 | "diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml\n--- a/.github/workflows/ci.yml\n+(...TRUNCATED) | [
"748"
] | "diff --git a/crossbeam-utils/build.rs b/crossbeam-utils/build.rs\n--- a/crossbeam-utils/build.rs\n+(...TRUNCATED) | crossbeam-rs/crossbeam | 1,015 | 0761acfb85266fc71adc683071c22a0b3ca3cb10 | "`AtomicCell` accessing uninitialized memory\nRun the follow code sample with `cargo +nightly miri r(...TRUNCATED) | 9e8596105bc9a6b343918b6ad1c9656dc24dc4f9 |
crossbeam-rs__crossbeam-1012 | "I have a working version of this feature in https://github.com/Lucretiel/crossbeam/tree/unpark-reas(...TRUNCATED) | 2023-08-09T10:00:18Z | 0.8 | "diff --git a/crossbeam-utils/tests/parker.rs b/crossbeam-utils/tests/parker.rs\n--- a/crossbeam-uti(...TRUNCATED) | [
"601"
] | "diff --git a/crossbeam-utils/src/sync/mod.rs b/crossbeam-utils/src/sync/mod.rs\n--- a/crossbeam-uti(...TRUNCATED) | crossbeam-rs/crossbeam | 1,012 | 03d68a2f211578b3cc5a8c899b9662fbe4dd6bc3 | "Should park_timeout report the reason for their return (timeout or unpark)?\nThis originally is a b(...TRUNCATED) | 9e8596105bc9a6b343918b6ad1c9656dc24dc4f9 |
crossbeam-rs__crossbeam-999 | 2023-06-17T13:41:25Z | 0.8 | "diff --git a/crossbeam-utils/tests/thread.rs b/crossbeam-utils/tests/thread.rs\n--- a/crossbeam-uti(...TRUNCATED) | [
"651"
] | "diff --git a/crossbeam-utils/src/thread.rs b/crossbeam-utils/src/thread.rs\n--- a/crossbeam-utils/s(...TRUNCATED) | crossbeam-rs/crossbeam | 999 | ce31c18607c44d3d07fc3618f981e858b35e3828 | "Use own unix::JoinHandleExt trait\nThe standard library's extension traits are not intended to be i(...TRUNCATED) | 9e8596105bc9a6b343918b6ad1c9656dc24dc4f9 | |
crossbeam-rs__crossbeam-987 | 2023-06-12T16:28:36Z | 0.8 | "diff --git a/crossbeam-channel/tests/mpsc.rs b/crossbeam-channel/tests/mpsc.rs\n--- a/crossbeam-cha(...TRUNCATED) | [
"986"
] | "diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml\n--- a/.github/workflows/ci.yml\n+(...TRUNCATED) | crossbeam-rs/crossbeam | 987 | 81ff802b19afc9e3ce37b822b3d5681f6e961cb7 | "Publish new `crossbeam-epoch` with updated `memoffset`\nI see `memoffset` was updated to 0.9 in `cr(...TRUNCATED) | 9e8596105bc9a6b343918b6ad1c9656dc24dc4f9 | |
crossbeam-rs__crossbeam-964 | 2023-02-28T13:27:45Z | 0.8 | "diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml\n--- a/.github/workflows/ci.yml\n+(...TRUNCATED) | [
"918"
] | "diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml\n--- a/.github/workflows/ci.yml\n+(...TRUNCATED) | crossbeam-rs/crossbeam | 964 | 366276a4dde8bd6b4bdab531c09e6ab1ff38c407 | "atomic_cell::is_lock_free test fails on armv7-unknown-linux-gnueabihf\nBuilding crossbeam-utils 0.8(...TRUNCATED) | 9e8596105bc9a6b343918b6ad1c9656dc24dc4f9 | |
crossbeam-rs__crossbeam-936 | "\r\n> Looks like the assumptions made in this test aren't correct on 32-bit ARM?\r\n\r\nyeah, arm's(...TRUNCATED) | 2022-12-03T08:02:48Z | 0.8 | "diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml\n--- a/.github/workflows/ci.yml\n+(...TRUNCATED) | [
"918"
] | "diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml\n--- a/.github/workflows/ci.yml\n+(...TRUNCATED) | crossbeam-rs/crossbeam | 936 | 42ad5f704dbdbdc54462a076f0fe6172acdcf772 | "atomic_cell::is_lock_free test fails on armv7-unknown-linux-gnueabihf\nBuilding crossbeam-utils 0.8(...TRUNCATED) | 9e8596105bc9a6b343918b6ad1c9656dc24dc4f9 |
crossbeam-rs__crossbeam-929 | 2022-11-20T07:55:38Z | 0.8 | "diff --git a/crossbeam-epoch/Cargo.toml b/crossbeam-epoch/Cargo.toml\n--- a/crossbeam-epoch/Cargo.t(...TRUNCATED) | [
"928"
] | "diff --git /dev/null b/build-common.rs\nnew file mode 100644\n--- /dev/null\n+++ b/build-common.rs\(...TRUNCATED) | crossbeam-rs/crossbeam | 929 | 71dd4cace6e0e212dadcafb93170d4fa0a8ba2dc | "can you please cut a point release with PR #922 included?\nhey everyone, \r\n\r\nPR #922 will most (...TRUNCATED) | 9e8596105bc9a6b343918b6ad1c9656dc24dc4f9 |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 6