Dataset Viewer
Auto-converted to Parquet Duplicate
instance_id
stringclasses
3 values
hints_text
stringclasses
3 values
created_at
stringclasses
3 values
version
stringclasses
2 values
test_patch
stringclasses
3 values
issue_numbers
sequencelengths
1
1
patch
stringclasses
3 values
repo
stringclasses
1 value
pull_number
int64
454
1.1k
base_commit
stringclasses
3 values
problem_statement
stringclasses
3 values
environment_setup_commit
stringclasses
2 values
FAIL_TO_PASS
sequencelengths
1
1
PASS_TO_PASS
sequencelengths
7
84
FAIL_TO_FAIL
sequencelengths
0
1
PASS_TO_FAIL
sequencelengths
0
0
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
[ "concurrent_insert_get_same_key" ]
[ "clear", "compare_insert_with_absent_key", "compare_and_insert", "entry_remove", "entry_reposition", "front_and_back", "entry", "get", "get_next_prev", "get_or_insert_with", "get_or_insert_with_panic", "get_or_insert", "insert", "into_iter", "is_empty", "insert_and_remove", "iter", ...
[]
[]
crossbeam-rs__crossbeam-454
Ah, we are waiting for `cfg(target_has_atomic)` to be stabilized, I guess? Honestly, I would just use those non-usize atomic types. Platforms on which they don't exist are niche anyway...
2019-12-18T15:22:35Z
0.7
diff --git a/crossbeam-utils/tests/atomic_cell.rs b/crossbeam-utils/tests/atomic_cell.rs --- a/crossbeam-utils/tests/atomic_cell.rs +++ b/crossbeam-utils/tests/atomic_cell.rs @@ -9,20 +9,19 @@ use crossbeam_utils::atomic::AtomicCell; fn is_lock_free() { struct UsizeWrap(usize); struct U8Wrap(bool); + stru...
[ "423" ]
diff --git a/crossbeam-utils/build.rs b/crossbeam-utils/build.rs --- a/crossbeam-utils/build.rs +++ b/crossbeam-utils/build.rs @@ -3,6 +3,12 @@ extern crate autocfg; fn main() { let cfg = autocfg::new(); if cfg.probe_rustc_version(1, 31) { - println!("cargo:rustc-cfg=has_min_const_fn"); + autoc...
crossbeam-rs/crossbeam
454
424f926673d652f306f266d4309ed8717e931144
AtomicCell without lock for non-usize values in stable. Now that `std::atomic::AtomicU{8,16,32,64}` has been stabilized, please allow `AtomicCell` to store values with non-`usize` widths without a lock. This would require increasing the min rust version. Let me know if you like me to send a pull request. Thanks....
bfb7705989a0961a16386ae2109bc2ef7f0bbe5e
[ "is_lock_free" ]
[ "const_atomic_cell_new", "drops_u8", "drops_unit", "drops_usize", "garbage_padding", "modular_u8", "modular_usize" ]
[]
[]
crossbeam-rs__crossbeam-552
`Local::bag` field is 2056 bytes and already exceeds 2048 bytes, so there seems to be no other way to do this than reduce the size of `Bag`. https://github.com/crossbeam-rs/crossbeam/blob/bfb7705989a0961a16386ae2109bc2ef7f0bbe5e/crossbeam-epoch/src/internal.rs#L362-L363 And to reduce the size of the `Bag`, it ne...
2020-09-01T08:37:42Z
0.7
diff --git a/crossbeam-epoch/src/internal.rs b/crossbeam-epoch/src/internal.rs --- a/crossbeam-epoch/src/internal.rs +++ b/crossbeam-epoch/src/internal.rs @@ -374,6 +372,13 @@ pub struct Local { pin_count: Cell<Wrapping<usize>>, } +// Make sure `Local` is less than or equal to 2048 bytes. +// https://github.com...
[ "551" ]
diff --git a/crossbeam-epoch/src/internal.rs b/crossbeam-epoch/src/internal.rs --- a/crossbeam-epoch/src/internal.rs +++ b/crossbeam-epoch/src/internal.rs @@ -55,7 +55,7 @@ use crate::sync::queue::Queue; /// Maximum number of objects a bag can contain. #[cfg(not(feature = "sanitize"))] -const MAX_OBJECTS: usize = 6...
crossbeam-rs/crossbeam
552
bfb7705989a0961a16386ae2109bc2ef7f0bbe5e
The Local structure is 2104 bytes long and jemalloc rounds this to 4096 bytes. The Local structure here https://searchfox.org/mozilla-central/source/third_party/rust/crossbeam-epoch/src/internal.rs#287 is 2104 bytes long. When compiled into Firefox and using the jamalloc memory allocator this is rounded up to 4096 byte...
bfb7705989a0961a16386ae2109bc2ef7f0bbe5e
[ "internal::local_size" ]
[ "atomic::tests::valid_tag_i64", "atomic::tests::valid_tag_i8", "collector::tests::drop_array", "collector::tests::flush_local_bag", "collector::tests::garbage_buffering", "collector::tests::pin_reentrant", "deferred::tests::long_slice_usize", "deferred::tests::boxed_slice_i32", "deferred::tests::on_...
[ "crossbeam-epoch/src/guard.rs - guard::unprotected (line 449)" ]
[]
README.md exists but content is empty.
Downloads last month
5