http://www.perlmonks.org?node_id=939361


in reply to [Win32] pthreads and memory allocation

malloc can be one of many memory allocation system inside of XS, and it's not necessarily the same as the one pthreard was compiled with. I suspect your problems are related to that.

Write C in C, not in XS. Use XS as the glue.

  • Comment on Re: [Win32] pthreads and memory allocation