mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-02 12:30:24 +08:00
07ec40170a
The old technique was from a time when we had to reduce stack pressure by moving 64K buffers elsewhere. It was implemented using a static global buffer, guarded by a muto. However, that adds a lock which may unnecessarily serialize threads. Use Windows heap buffers per invocation instead. HeapAlloc/HeapFree are pretty fast, scale nicely in multithreaded scenarios and don't serialize threads unnecessarily. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. Cygwin documentation is available on the net at https://cygwin.com You might especially be interested in https://cygwin.com/faq/faq.html#faq.programming.building-cygwin