Skip to content

Commit

Permalink
Fix deadlock in release builds (#571)
Browse files Browse the repository at this point in the history
  • Loading branch information
SamRodri authored Dec 24, 2024
1 parent 4f38e0b commit fb4e3f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Unreleased

* Fix deadlock in release builds (introduced in 0.13.1).

# 0.13.1

Expand Down
1 change: 1 addition & 0 deletions crates/zng-var/src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,7 @@ fn apply_modify<T: VarValue>(inner: &RwLock<VarDataInner<T>>, modify: impl FnOnc
let mut value = VarModify::new(&meta.value);
modify(&mut value);
let (notify, new_value, update, tags, custom_importance) = value.finish();
drop(meta);

// code size optimization, removes the impl FnOnce generic
fn finish<T: VarValue>(
Expand Down

0 comments on commit fb4e3f6

Please sign in to comment.