Avoid allocating extra memory for synchronization primitives
Merge branch 'v0.10'