]> git.sesse.net Git - stockfish/commit
Increase thread stack for OS X (#2035)
authorMarco Costalba <mcostalba@users.noreply.github.com>
Tue, 12 Mar 2019 07:35:10 +0000 (08:35 +0100)
committerGitHub <noreply@github.com>
Tue, 12 Mar 2019 07:35:10 +0000 (08:35 +0100)
commitbad18bccb60c874410edd3f61624696d3abc3cbc
treec8a122be584fcffa7938cd748085b5d3b349a6e0
parentb8efa0daac897e1b8f3efb9ca09ec4151492f1e0
Increase thread stack for OS X (#2035)

On OS X threads other than the main thread are created with a reduced stack
size of 512KB by default, this is dangerously low for deep searches, so
adjust it to TH_STACK_SIZE. The implementation calls pthread_create() with
proper stack size parameter.

Verified for no regression at STC enabling the patch on all platforms where
pthread is supported.

LLR: 2.95 (-2.94,2.94) [-3.00,1.00]
Total: 50873 W: 9768 L: 9700 D: 31405

No functional change.
src/syzygy/tbprobe.cpp
src/thread.h
src/thread_win32_osx.h [moved from src/thread_win32.h with 66% similarity]