Send scheme procedure as callback to foreign thread.

2022-10-10 Thread Zhu Zihao
In Guile FFI programming, we have procedure->pointer, which makes a Scheme procedure a foreign callback. And foreign library call use this callback. However, if this callback is called in a another foreign thread. The scheme context is not properly setup, It may cause crash or UB. IIUC, the proce

Re: bug#22608: Module system thread unsafety and .go compilation

2022-10-10 Thread Ludovic Courtès
Hi! Maxim Cournoyer skribis: > l...@gnu.org (Ludovic Courtès) writes: [...] >> For the record, these issues should be fixed in Guile 2.2.4: >> >> 533e3ff17 * Serialize accesses to submodule hash tables. >> 46bcbfa56 * Module import obarrays are accessed in a critical section. >> 761cf0fb8 * Ma