manuel-serrano / bigloo

a practical Scheme compiler
http://www-sop.inria.fr/indes/fp/Bigloo
Other
133 stars 20 forks source link

Correct jvm pthread state implementation #109

Closed donaldsonjw closed 7 months ago

donaldsonjw commented 7 months ago

The prior change, while permitting the recette to pass, was incorrect. This was pointed out by Andreas Franke in a private communication. The current changes correct that error and also take into account differences in pthread behavior betwee the jvm and c backends, namely all mutexes owned by a thread are closed by thread exit in the jvm backend. See bglpthread::run in Java/bglpthread.java.

manuel-serrano commented 7 months ago

This PR is not fully compatible with the last modifications I have applied (it breaks SRFI18 and FTHREAD). However, I will accept it and back port the last changes.