pull_number int64 | hints_text string | patch string | test_patch string | version string | problem_statement string | created_at string | instance_id string | repo string | issue_numbers sequence | base_commit string | environment_setup_commit string | FAIL_TO_PASS sequence | PASS_TO_PASS sequence | FAIL_TO_FAIL sequence | PASS_TO_FAIL sequence |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1,101 | 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... | diff --git a/crossbeam-skiplist/src/base.rs b/crossbeam-skiplist/src/base.rs
index adee38472..8041718fe 100644
--- 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 _);
- l... | diff --git a/crossbeam-skiplist/tests/map.rs b/crossbeam-skiplist/tests/map.rs
index 57c819d21..e5145fb06 100644
--- 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... | 0.8 | 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.... | 2024-04-12T12:16:27Z | crossbeam-rs__crossbeam-1101 | crossbeam-rs/crossbeam | [
"1023"
] | 9e8596105bc9a6b343918b6ad1c9656dc24dc4f9 | 9e8596105bc9a6b343918b6ad1c9656dc24dc4f9 | [
"concurrent_insert_get_same_key"
] | [
"clear",
"compare_and_insert",
"compare_insert_with_absent_key",
"entry_remove",
"entry",
"entry_reposition",
"get",
"get_or_insert_with",
"get_or_insert",
"front_and_back",
"insert_and_remove",
"into_iter",
"is_empty",
"get_next_prev",
"insert",
"iter_range2",
"iter",
"ordered_ite... | [] | [] |
README.md exists but content is empty.
- Downloads last month
- 5