Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: Crystal::SpinLock doesn't need to be allocated in the HEAP
The abstraction is a mere abstraction over an atomic integer and the object itself are only ever used internally of other objects, with the exception of Channel where the code explicitely accesses the ivar directly (thus not making copies). We can avoid a HEAP allocation everywhere we use them (i.e. in lots of places).
- Loading branch information