cisco / ChezScheme

Chez Scheme
Apache License 2.0
6.89k stars 983 forks source link

repair for `system` in thread that can be deactivated #759

Closed mflatt closed 7 months ago

mflatt commented 7 months ago

The system primitive is intended to be like a __collect_safe foreign call, allowing other threads to perform a collection while waiting for the shell command to return. Its shell-command argument is allocated, however, so system needs a copy of its argument while its thread is deactivated.

mflatt commented 7 months ago

Thanks — malloc check added.