mirror of
https://github.com/libretro/parallel-dc.git
synced 2026-11-10 17:26:21 -10:00
The network thread took frames from the broadband adapter until the ring was empty, and only then gave the sockets and the stack's timers their turn. A guest that sends without stopping refills the ring as fast as it is emptied, so the turn never came: in the thread suite's flood, an ARP request got its first answer and no other, which failed the test under ASan (the slower build) and passed it under TSan by luck. No more than 256 frames in one pass; when there may be more, the thread comes back for them after the rest has run, without sleeping in between. tools/threads/run.sh: the adapter test gets four ARP replies under both sanitizers (it wants two).