permaweb / HyperBEAM

An implementation of AO: the A(ctor) O(riented) supercomputer for the permaweb.
https://ao.arweave.net
Other
5 stars 0 forks source link

fix(cu_beamr): fix race conditions when calling imported functions #19

Open oltarasenko opened 2 days ago

oltarasenko commented 2 days ago

Change the behavior of cu_beamr.c -> generic_import_handler, to fill the current_import structure before sending import_request to Erlang and lock the driver just after messaging Erlang to avoid the race condition (when Erlang replies before the current_import structure has the data).