Re: [PATCH v4 01/25] contrib/plugins: Use GRWLock in execlog

2023-08-16 Thread Richard Henderson
On 8/16/23 07:51, Akihiko Odaki wrote: static void expand_last_exec(int cpu_index) { -g_mutex_lock(&expand_array_lock); +g_rw_lock_writer_unlock(&expand_array_lock); lock, not unlock. r~

[PATCH v4 01/25] contrib/plugins: Use GRWLock in execlog

2023-08-16 Thread Akihiko Odaki
execlog had the following comment: > As we could have multiple threads trying to do this we need to > serialise the expansion under a lock. Threads accessing already > created entries can continue without issue even if the ptr array > gets reallocated during resize. However, when the ptr array get