fix: tform: potential crash due to race when MODMAX/MODMIN#797
fix: tform: potential crash due to race when MODMAX/MODMIN#797jodavies merged 1 commit intoform-dev:masterfrom
Conversation
A worker could free a dollar variable's data, while another worker is trying to read it. Lock the dollar variable before working out its RHS in case the RHS depends on the dollar variable that is being assigned.
|
I wonder if the CI failure might be related to awalsh128/cache-apt-pkgs-action#187. When I print the Valgrind errors, it seems like it could be a libc6-dbg incompatibility (?) Valgrind errors |
|
For the record, there is a 1-2% performance regression in tests which use |
|
Here are the benchmark results for my system (Intel Core i9-12900, Ubuntu 20.04, x86_64) with
DetailsSpeedup of B over A (mean) = (mean time of A) / (mean time of B) A: B: Paired runs with n = 30 per benchmark. Used the scripts from this snapshot. The binaries were built for the x86-64-v1 baseline. Environment:
|
A worker could free a dollar variable's data, while another worker is trying to read it. Lock the dollar variable before working out its RHS in case the RHS depends on the dollar variable that is being assigned.
This closes #147 and #796 , though #796 contains more discussion for the future.