cats-effect icon indicating copy to clipboard operation
cats-effect copied to clipboard

Double check `stackalloc`s

Open durban opened this issue 7 months ago • 0 comments
trafficstars

In #4201 there were multiple stackalloc[Type] calls which needed to be replaced by something like stackalloc[Byte](explicitSize).asInstanceOf[Ptr[Type]] (because otherwise they caused segfaults). However not all of them were replaced. We should double check the remaining ones, to determine whether they're compiled correctly, or not (and just happen not to segfault).

At least the following ones remained:

  • KqueueSystem: stackalloc[timespec]
  • WorkStealingThreadPoolPlatform: stackalloc[timespec]

durban avatar Apr 05 '25 13:04 durban