Hacker News new | past | comments | ask | show | jobs | submit login

The situation that you describe could happen, but it is quite rare in practice. Usually, I call c functions that do their work and be done, such as BLAS.

For such cases, you can either manually allocate the pointers you pass to c, or temporarily disable the gc. Each thread has its own heap, so gc for one thread does not break anything in other threads




It's just those "quite rare in practice" bugs that I'm concerned about. Those tend to cost the most.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: